Forum Moderators: not2easy
I'm still not sure about the center colum...
What in this stylesheet code makes it expandable:
#centercontent {
background:#fff;
margin-left: 199px;
margin-right:199px;
border:1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
margin-left: 201px;
margin-right:201px;
}
html>body #centercontent {
margin-left: 201px;
margin-right:201px;
}
Also, what is voice-family?
thx!
"Voice-family" is a CSS selector used with screen readers but it is used here as part of a hack to deal with the way Internet Explorer 5 renders padding and margin different from other browsers. A search for "tantek voice-family hack" will tell you what you need to know.
It's got 2 margin-left & margin-right... 199, and 201. That just doesn't make sense...
That's what the "voice-family hack" is. The first set are read by IE which then stops reading because of the voice family parse error...the second set are for everything else
and then just in case, it's also called "the be nice to Opera Rule", you add the bit below which repeats the widths in a way that Opera (and Newer NN?) browsers like
Also I'm not sure what this does either:
html>body #centercontent {
margin-left: 201px;
margin-right:201px;
}
It took me ages to figure this out too, and I try to avoid using pixel perfect designs now for this very reason ;)
Suzy
avoiding Tantek Celig's box model hack [webmasterworld.com]