Not signed in (Sign In)

Powered by Vanilla 1.1.8.

Welcome Guest!
Want to take part in these discussions? If you have an account, please sign in. If you don't have an account, register now.
    • CommentAuthoracervo
    • CommentTimeJun 8th 2009
     #1

    I've added a background color to the legend, and can't get it to set to width of 100%. I want the legend/background color to extend across the entire width of the form...yet it's acting like a label and stopping at the same width as the labels...

    I've modified the uni-form css file as follows:

    .uniForm fieldset legend{ font-weight: regular; padding:4px 10px 4px 5px; background:#eee; width: 100%;}

    I've tried setting actual pixels (ex: width: 620px;) but same result: no change. All the other changes I made to legend are showing up, though: the font has changed from bold to regular, my padding and background color are there...everything except the width.

    Any ideas? Thanks...

    • CommentAuthoracervo
    • CommentTimeJun 8th 2009
     #2

    Update: it seems to work in IE7...but not in FF3.

  1.  #3

    Legend elements are tricky to say the least, meaning — like file upload inputs — they are difficult to style. That’s why I avoid them altogether and use heading elements inside fieldsets instead, and I advise you to do the same.