5 replies [Last post]
aikanaro
Offline
Enthusiast
Last seen: 15 years 21 weeks ago
Joined: 2006-06-28
Posts: 78
Points: 0

Hi everyone

I'm trying to use a css to correct IE's specific problems so that my generic stylesheet remais just that: generic. However, I can't seem to make it work. Can anyone help me?

My XHTML code starts off like this:


page title






...

Thanks in advance.

"Mr. Hunt, this isn't mission difficult, it's mission impossible. "Difficult" should be a walk in the park for you." - Anthony Hopkins in Mission Impossible II

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 25 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Check your syntax

In cases like this one should check that the syntax is being used correctly by looking for examples.

It's not [IF IE lte 6] you have divided the version number from it's object [IF lte IE 6]

Try it the correct way and see if things work.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

aikanaro
Offline
Enthusiast
Last seen: 15 years 21 weeks ago
Joined: 2006-06-28
Posts: 78
Points: 0

Ok so I tried different

Ok so I tried different combinations as you advised:

[if lte IE 6]
[if lte IE6]
[if IE]

and none of the above work. I figure I must be doing something wrong but I can't seem to find my error.

Could it have to do with my DOCTYPE? I've googled for examples and pages explaining it and so far all I've come up with hasn't worked for me.

Any ideas? Thanks again for your help.

"Mr. Hunt, this isn't mission difficult, it's mission impossible. "Difficult" should be a walk in the park for you." - Anthony Hopkins in Mission Impossible II

aikanaro
Offline
Enthusiast
Last seen: 15 years 21 weeks ago
Joined: 2006-06-28
Posts: 78
Points: 0

I found it! It really was a

I found it!

It really was a stupid thing...I had

and it had to be: Apparently there can be no space between "!--" and "[if IE]"

Again, thanks for helping me out.

"Mr. Hunt, this isn't mission difficult, it's mission impossible. "Difficult" should be a walk in the park for you." - Anthony Hopkins in Mission Impossible II

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 25 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Yes little things like that

Yes little things like that can matter sorry didn't spot that , as regards your DTD you should not be using 1.1 unless that is you are correctly serving XHTML as application/ xhtml+xml otherwise as text/html (default for most servers) you may only use 1.0.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

aikanaro
Offline
Enthusiast
Last seen: 15 years 21 weeks ago
Joined: 2006-06-28
Posts: 78
Points: 0

Thanks again for your help.

Thanks again for your help. It happens to everyone, I don't know yet how I noticed it. Smile And thanks also for the tip related to DTD.

"Mr. Hunt, this isn't mission difficult, it's mission impossible. "Difficult" should be a walk in the park for you." - Anthony Hopkins in Mission Impossible II