You are here: Problem with CSS file in IE7 « HTML « IT news, forums, messages
Problem with CSS file in IE7

Posted by Mike on 09/03/07 15:47

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация