WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > Browser Compatibility > CSS hellp with IE8 and 9

Reply
  Thread Tools Display Modes
Old 9th April 12, 01:19 AM   #1
aaron4osu
WLC Member
 
Join Date: Jun 2011
Posts: 11
Default CSS hellp with IE8 and 9

I have built a site that has been works fine on safari and firefox. Now I'm trying to optimize for IE8 and 9. There are so many little things (borders, positioning, padding, margin, cs3, etc...) that are wrong when viewing on IE and I'm not sure where to start. Are there tools that help with this. I've searched but can't seem to find much help.

Here is the site: http://aaronhaas.com/pitchshark5/index.php?vid_id=4
aaron4osu is offline   Reply With Quote
Old 9th April 12, 11:36 AM   #2
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: CSS hellp with IE8 and 9

A: lose any positioning, you are probably using incorrectly anyway, not your fault though, most tutorials fail to explain it fully, they just tell you to use it.

In your layout the only place I can where positioning is required is the "drop down menu".

CSS3 with IE8?? Not going to happen! CSS3 with IE9?? A lot of it works, however there is a lot that doesn't.

So: Read up on the W3c box model it is not like a real world box, learn about the floating elements and "clearing" them

And after that start to use positioning is in most cases a last ditch effort to make a layout work, if you have to position elements, you have got something wrong somewhere.
The ONLY exclusion from the above, are CSS "dropdown" menus where postioning is required to make the function appropriately with disrupting the normal flow on each "mouseover"
chrishirst is offline   Reply With Quote
Old 9th April 12, 12:59 PM   #3
aaron4osu
WLC Member
 
Join Date: Jun 2011
Posts: 11
Default Re: CSS hellp with IE8 and 9

Thanks Chris, Luckily, most of my positioning is done by floating divs and then using margin to position them. But the site still looks nothing like the normal browsers.

Are there any goods guides to use for this that will show work arounds for ie?
aaron4osu is offline   Reply With Quote
Old 12th April 12, 07:57 PM   #4
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,197
Default Re: CSS hellp with IE8 and 9

You need to look at things like this

Code:
#container {
	width:985px;
	margin:0px auto;
  margin-left:20px;
}
Your rules set the container to be centred then promptly break that by resetting the left margin.
Also your widths make no allowance for the fact that margins, padding and borders increase the width of an element so you get "float drop" where elements are forced down to the next horizontal row.

You also need to clear the floats where the buttons "break out" of the parent container to prevent that from happening.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:32 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.