Jump to content

treating fieldsets as divs?


freelance84

Recommended Posts

I'm just redesigning a layout using table to divs with CSS.

 

One key feature to a certain section is that the content must be contained within a fieldset.

 

Can I go ahead and treat the fieldset as a div with respect to positioning or should i put a div within the fieldset and go from there?

 

(The only reason i ask is that i have had a few issues in the past with fieldset and legends. I don't want to plunge into the redesign if fieldsets have certain quirks in some browsers)

Link to comment
Share on other sites

If you have a fixed width and either margins or paddings for the fieldset, it's always better to wrap it in a div, applying the fixed with to the wrapping div, and the paddings/margins to the contained fieldset. This gives you cross-browser compatibility with IE.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.