M
Mike
Hi,
I have some html that relies on a stylesheet and although the styles
are recognised in FireFox 2, in IE7 the page displays without any
colour or font styles being applied.
My stylesheet.css contains several sections like the following :
my_section_head {
color: Red;
font-size: large;
position: absolute;
left: 0px;
visibility: visible;
}
These are referred to in the page.html file in a similar way to this :
<div id="Chroma_Sub_Sample">
<my_section_head>Chroma Sub Sample</my_section_head
I don't believe the problem is down to IE not being able to see the
stylesheet because if I change eg "rsm_head" to "h3" as follows in the
stylesheet and html file then the formatting is picked up :
h3 {
color: Red;
font-size: large;
position: absolute;
left: 0px;
visibility: visible;
}
<div id="Chroma_Sub_Sample">
<h3>Chroma Sub Sample</h3>
Is there something wrong with the names I've picked ? I mean, must
they be specified in a certain way or start with a special
character ? I tried prefixing my_section_head with "." and with "#"
but that made no difference.
Any halp greatly appreciated,
Thanks,
Mike
I have some html that relies on a stylesheet and although the styles
are recognised in FireFox 2, in IE7 the page displays without any
colour or font styles being applied.
My stylesheet.css contains several sections like the following :
my_section_head {
color: Red;
font-size: large;
position: absolute;
left: 0px;
visibility: visible;
}
These are referred to in the page.html file in a similar way to this :
<div id="Chroma_Sub_Sample">
<my_section_head>Chroma Sub Sample</my_section_head
I don't believe the problem is down to IE not being able to see the
stylesheet because if I change eg "rsm_head" to "h3" as follows in the
stylesheet and html file then the formatting is picked up :
h3 {
color: Red;
font-size: large;
position: absolute;
left: 0px;
visibility: visible;
}
<div id="Chroma_Sub_Sample">
<h3>Chroma Sub Sample</h3>
Is there something wrong with the names I've picked ? I mean, must
they be specified in a certain way or start with a special
character ? I tried prefixing my_section_head with "." and with "#"
but that made no difference.
Any halp greatly appreciated,
Thanks,
Mike