470,563 Members | 2,171 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,563 developers. It's quick & easy.

CSS rendering diffrently on IE7 & Firefox

I've looked around and it appears that all the useful hacks for getting IE to display an alternate css style are gone (?)
That would have been useful since my problem is basically that in IE a div is displaying too far right.
The div in question is (via web dev toolbar)
Expand|Select|Wrap|Line Numbers
  1. html > body > div #holdall > div #wrapperInside > div #container > div #bodyLeft > div #gridContainer > div #insideRightWide > div #insideRightforPMbar
#insideRightWide has position:relative and #insideRightforPMbar has position:absolute none of the parent tags have a position stated.
Expand|Select|Wrap|Line Numbers
  1. #insideRightWide {margin-left:129px; border-left:1px solid #d0cfcf; padding-right:10px; padding-left:10px; padding-top:10px; height:inherit; position:relative}
  2. #insideRightforPMbar {position:absolute; margin-left:129px; padding-left:2px;  border-left-width: 1px; border-left-style: solid; border-left-color: #d0cfcf;}
Is this enough info? I don't know where to start...
Mar 4 '08 #1
2 1287
7,435 Expert 4TB
No. Not enough information. Make sure no comments exist in any of the html. IE7 selector support is buggy. I question whether you need all that to get the div to do what you want. In any case, FF is properly displaying what you wrote.
Mar 4 '08 #2
OK, I found a hack that still works for IE7
It is described here if anyone is interested

height: 15px;
#height: 15px;
_height: 21px;
The first setting will apply to all browsers,
The second setting will only apply to Microsoft Internet Explorer browsers
The third setting will only apply to IE browsers 6.0 and older
Mar 4 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

30 posts views Thread by Matt Probert | last post: by
6 posts views Thread by Alejandro Penate-Diaz | last post: by
4 posts views Thread by David R | last post: by
12 posts views Thread by Brad | last post: by
14 posts views Thread by Arne | last post: by
3 posts views Thread by Nathan Sokalski | last post: by
3 posts views Thread by SAL | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.