Click to See Complete Forum and Search --> : fieldset width?


justravis
09-05-2008, 02:45 AM
I want the fieldset borders to only outline the area needed for those fields much like a table without a width attribute behaves.

How do I prevent the fieldset borders from extending to the edge of the div it's enclosed?
http://dmd.disabilitymentoring.org/app/mentee/?coor=1


THANKS!

HalfaBee
09-05-2008, 03:29 AM
I am useless at css, but this line is incorrect.

<link href='/home/dm/www/dmd/_functions/styles_-_0.css' type='text/css' rel='stylesheet'>

and
fieldset
{
width:0px;
}

will cause the overlapping fieldsets

BillKat
09-10-2008, 01:19 PM
Think that call to the CSS file is OK, 'tis one weird filename though....

Far as I know you can set a fixed width only. You could do it by inline CSS, per fieldset, if needs be:

<fieldset style="width:100px;">

Test in different browsers though, the IE box model means a slightly different interpretation of the width value (allow enough for it not to matter, or look at box model hacks or IE's conditional processing).