I'm trying to create a simple form, and the width default takes up the entire page width. I seem to recall having this problem before; however, previous posts aren't retained long enough that I can locate the answer. Rather than hard-code a width to fit, which CSS attribute(s) can I use to "trim" the width of the form? > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <body> > <style> > .dataEntryForm { padding-right : 0px; background-color : grey; > border-style : groove; border-color : #98bf21; border-width : medium; } > option { padding-right : 0px; } > </style> > <form name="setValues" action="." class="dataEntryForm"> > <table> > <tr><td>Start Month:</td><td><select name="month"> > <option value=" "> > <option value="Jan">Jan > </select></td></tr> > </table> > </form> > </body> > </html> > Thanks in advance for any help you can provide.
-- -- You received this because you are subscribed to the "Design the Web with CSS" at Google groups. To post: css-design@googlegroups.com To unsubscribe: css-design-unsubscr...@googlegroups.com