By Kato on
I have a site that I am playing around with and it looks great in FireFox, but IE displays it as complete and total garbage. Take a look at the site and you will see it...it's pretty obvious.
Any ideas of what I can do to correct this so that it displays correctly in both browsers? I'm using the Blue_Bars theme for 4.7 and modified some of the css, but not too much. Any help would be appreciated.
Site in question.... http://ngl.gamersides.com
Comments
Base theme
How's the base theme look in IE before your CSS mods? In other words... can we figure out if this problem was there before you made changes, or if your changes caused the problem?
S
hhmm
I never looked at the base theme before the css changes so I honestly can't say if they did or not. I imagine so though. Before I made the changes, the right sidebar and the center content had a HUGE gap in there. Changed the margins around a bit and specified some sizes and it worked. I have an idea to try though and see if it works, but I'm not sure if it will or not.
I can post up the css file if needed or if it would help.
Tried a few more changes and none of them worked. I've left the css file where it's at for right now to see if someone can come up with something that will correct it.
--
http://nglofsalina.com
show the css
can you show the css? i was having problems myself recently and when i removed some width=100% items IE started behaving properly.
This is gonna be a long post...
But this is the current style.css I am using.
--
http://nglofsalina.com
I guess it's about width, margin, padding, etc
Firefox and Internet Explorer handle the combination of width, margin and padding in a different way. This is often called the Box Model Problem. Didn't study your code extensively, but I guess that's where it all goes wrong.
So how to solve then? There's a hack called, indeed, the Box Model Hack. Do some googling and you'll defintely find some interesting pages. This is just one of them:
- http://www.communitymx.com/content/article.cfm?cid=E0989953B6F20B41
Hope it will solve the issue.
___________________
discover new oceans
lose sight of the shore
hhmmm
That does seem to be what the issue is when looking at it and it makes perfectly good sense. IE is displaying those boxes at the fullest max width and they are colliding with each other. Interesting. I will try to look a little further in to this and see if I can get it to work. Otherwise, I've already made a box telling people to use FireFox or Opera and avoid IE. This part of the site doesn't get much traffic, so it won't matter much.
--
http://nglofsalina.com
And you could try and avoid
And you could try and avoid the problem altogether by not adding padding to an element with a defined width ... instead add it to the element's parent or children if possible.