Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  CSS Navigation  CSSNext Question:  Borders Padding in different browsers  CSS
Question Problems with External CSS in IE5 ( SitePoint Forums CSS )
Updated: 2008-11-23 03:55:01 (4)
Problems with External CSS in IE5

When checking the external .css files for my website I get the following errors:

</style>
[if gte IE 5]>
<style>
#p7swapmenu ul a {height: 1em;}
</style>
<![endif]
[if IE 5]>
<style>
#p7swapmenu li {margin-top: -3px;}
</style>
<![endif]
[if gte IE 5]>
<style>
#p7swapmenu a {
position: relative;
height: 1em;
zoom: 100%;
}
</style>
<![endif]

And receive the following error reports attached via Zip.

It might be that I need to add soemthing else to the style sheet.

Thanks for all help.

FC

Answers: Problems with External CSS in IE5 ( SitePoint Forums CSS )
Problems with External CSS in IE5

I don't see any errors anywhere in your post...

ronaldb66

Problems with External CSS in IE5

Hi,

You haven't put the conditional comments in your external file have you?

Only css can go in the external file.

Paul

Paul O'B

Problems with External CSS in IE5

Quote:
Originally Posted by Paul O'B
Hi,

You haven't put the conditional comments in your external file have you?

Only css can go in the external file.

Paul
Hi Paul

Thanks for that Paul

Can you give me a copy of the Conditional Comments please?

Thanks

FC

Flappy Chicken

Problems with External CSS in IE5

Hmmm sorry not sure what you mean -perhaps I confused you (or you confused me lol)

You said that this below was your external file:
Code:
[if gte IE 5]>
<style>
#p7swapmenu ul a {height: 1em;}
</style>
<![endif]
[if IE 5]>
<style>
#p7swapmenu li {margin-top: -3px;}
</style>
<![endif]
[if gte IE 5]>
<style>
#p7swapmenu a {
position: relative;
height: 1em;
zoom: 100%;
}
</style>
<![endif]
All the parts in bold are your conditional comments and shouldn't be in an external stylesheet. You have to leave the whole section in the head of the document to work or use them to call external stylesheets themselves.

Paul

Paul O'B

Previous Question:  CSS Navigation  SitePoint Forums  CSSNext Question:  Borders Padding in different browsers  SitePoint Forums  CSS

- Source: Problems with External CSS in IE5 SitePoint Forums CSS
- Previous Question: CSS Navigation SitePoint Forums CSS
- Next Question: Borders Padding in different browsers SitePoint Forums CSS





AllQuests.com