E
Erik Harris
I've been playing with the website for the gung fu club that I run, trying to
give it a look that I like without using the dark background that I'm
currently using. I found something on the w3.org "Style" page that I liked
(one of the alternate style sheets there), and wanted to play with it.
Unfortunately, the page I've got put together doesn't appear to work in
Internet Explorer 6. As much as I'd like to say "screw 'em if they don't
have a standards-compliant browser," the fact that IE has by far the largest
market penetration out there makes that a really bad idea.
Hopefully someone has enough knowledge of the quirks in IE's CSS support that
they can help, or someone can help guide me to a simple way to say "if the
user is running IE, use this Style Sheet, otherwise use this one". The style
elements I'm using are these, modified from a style sheet used on
http://www.w3.org/Style/ :
div.back {
page-break-before: always;
margin: 3em -0.75em 3em 1em;
padding: 1em;
}
div.back {background: #700}
/*div.section div.back {background: #777}*/
div.section {
background: #FBFBFF;
margin: -2em 0 0 -2em;
padding: 1em;
border: thin solid #999;
}
The paragraphs are simply done like this:
<div class="back">
<div class="section">
<P>Here's a paragraph...</P>
</div></div>
The results in IE 6 are strange, though. I'm seeing signs of both the "back"
and "section" DIV types, but they're not lining up with the paragraphs, and
they don't seem to have much rhyme or reason to them, despite being
well-defined.
The page I'm putting together looks just fine in Firefox.
--
Erik Harris n$wsr$ader@$harrishom$.com
AIM: KngFuJoe http://www.eharrishome.com
Chinese-Indonesian MA Club http://www.eharrishome.com/cimac/
The above email address is obfuscated to try to prevent SPAM.
Replace each dollar sign with an "e" for the correct address.
give it a look that I like without using the dark background that I'm
currently using. I found something on the w3.org "Style" page that I liked
(one of the alternate style sheets there), and wanted to play with it.
Unfortunately, the page I've got put together doesn't appear to work in
Internet Explorer 6. As much as I'd like to say "screw 'em if they don't
have a standards-compliant browser," the fact that IE has by far the largest
market penetration out there makes that a really bad idea.
Hopefully someone has enough knowledge of the quirks in IE's CSS support that
they can help, or someone can help guide me to a simple way to say "if the
user is running IE, use this Style Sheet, otherwise use this one". The style
elements I'm using are these, modified from a style sheet used on
http://www.w3.org/Style/ :
div.back {
page-break-before: always;
margin: 3em -0.75em 3em 1em;
padding: 1em;
}
div.back {background: #700}
/*div.section div.back {background: #777}*/
div.section {
background: #FBFBFF;
margin: -2em 0 0 -2em;
padding: 1em;
border: thin solid #999;
}
The paragraphs are simply done like this:
<div class="back">
<div class="section">
<P>Here's a paragraph...</P>
</div></div>
The results in IE 6 are strange, though. I'm seeing signs of both the "back"
and "section" DIV types, but they're not lining up with the paragraphs, and
they don't seem to have much rhyme or reason to them, despite being
well-defined.
The page I'm putting together looks just fine in Firefox.
--
Erik Harris n$wsr$ader@$harrishom$.com
AIM: KngFuJoe http://www.eharrishome.com
Chinese-Indonesian MA Club http://www.eharrishome.com/cimac/
The above email address is obfuscated to try to prevent SPAM.
Replace each dollar sign with an "e" for the correct address.