Why won’t it work?!

So, I just realized that there could be somewhat of an inconsistency with styling. Howcome mozilla allows you to style everything with any style you want, but won’t let you do anything outside of changing colors for the legend attribute? Hu? Why? Please don’t tell me it’s an accessibility issue. If that were the case then you could lock out certain properties from different elements. Like the browser could force all p elements to have top and bottom margins of 1em. The uncool part, is that everyone knows about it! And the best advice? Use headings. Great. That doesn’t solve anything and it keeps people from using the correct semantics. It’s counter productive!

So, in the mean time, if you want to use background colors with fieldsets and use legends, then you’re going to have to live with the legend with half the background color. At least IE plays nice for once. I didn’t have any problems getting the legend completely inside the fieldset.

September 30, 2005 11:38 PM HTML and CSS


Leave a comment of your own

If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.

Use of HTML for comments is not available.

In an effort to combat spam, you will be able to post your comment after you preview.

Powered by Movable Type 3.2 Creative Commons License: Some Rights Reserved © 2000-2005

Site feeds. Hofully valid XHTML and CSS. No kitties were harmed in the making of this website.