freelance84 Posted August 26, 2010 Share Posted August 26, 2010 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) Quote Link to comment Share on other sites More sharing options...
Omirion Posted August 26, 2010 Share Posted August 26, 2010 w3s says there should be no problem. But if you CAN do it with a div, i'd suggest going that way. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted August 27, 2010 Author Share Posted August 27, 2010 Cheers, for now I'm going to leave the fieldsets in place. Just wondered if anyone knew of any problems, little quirky things. Cheers though Quote Link to comment Share on other sites More sharing options...
haku Posted August 30, 2010 Share Posted August 30, 2010 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.