Reply
IE not playing right with CSS site
Old 05-23-2008, 03:50 PM IE not playing right with CSS site
croix's Avatar
Skilled Talker

Posts: 87
Name: Colin Roy
Location: Dallas, TX
Hello,
I have found much help here in the past, so I thought I would check here again first.

I am creating a new (additional) site for a client, and decided give W3C strict a try for a change.

As of now, both the site and the CSS validate properly, however, I cant seem to get my navigation to line up properly in IE.

Safari and firefox both display the navigation just fine.


Anyone have a resource where i can figure out how to fix the nav for IE and still stay strict?
I guess what im looking for is a list of css tags that IE screws up, and a valid way to hack IE.


**** I fixed the display issue with the underscore hack, but the CSS does not validate
**** I tried the * html hack, but it didnt seem to solve the IE problem, like the underscore hack does

The site is www.sliquidorganics.com


thanks

croix

Last edited by croix : 05-23-2008 at 04:36 PM.
croix is offline
Reply With Quote
View Public Profile Visit croix's homepage!
 
When You Register, These Ads Go Away!
Old 05-23-2008, 05:33 PM Re: IE not playing right with CSS site
wayfarer07's Avatar
$frontend->developer

Posts: 1,013
Name: Abel Mohler
Location: Asheville, North Carolina USA
If you must use a hack instead of a conditional comment, and want it to validate, try this(example):
Code:
#element {
margin: 0px !important; /*a rule for standard browsers, including IE7*/
margin: 2px; /*a rule for IE6 and below*/
}
This works exactly as the underscore hack does, targeting only IE6 and below, and it validates. The margins '0px' and '2px' are just examples, meaning I doubt it is what is needed to fix your site.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 05-23-2008, 05:46 PM Re: IE not playing right with CSS site
croix's Avatar
Skilled Talker

Posts: 87
Name: Colin Roy
Location: Dallas, TX
so basically

!important

forces all browsers to read only that line, except IE 6 and below?

does IE 7 play nice with margin-top and margin-left?
croix is offline
Reply With Quote
View Public Profile Visit croix's homepage!
 
Old 05-24-2008, 09:12 AM Re: IE not playing right with CSS site
wayfarer07's Avatar
$frontend->developer

Posts: 1,013
Name: Abel Mohler
Location: Asheville, North Carolina USA
You've got it. IE7 shouldn't have any problems with margin-top and margin-left.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 05-24-2008, 11:51 AM Re: IE not playing right with CSS site
LadynRed's Avatar
Super Moderator

Posts: 6,534
Location: Tennessee
Hacking is a VERY bad habit to get into though. You never know, with new browser versions, when that hack is going to blow up in your face and bust your layout. Better to learn to use conditional comments (Google it) and proper CSS.

If you want to learn about IE's bugs and how to squash them, read up :
www.positioniseverything.net
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE not playing right with CSS site
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13490 seconds with 12 queries