Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with about 3pixels difference between IE and Firefox 1

Status
Not open for further replies.

ggordon

Programmer
Sep 15, 2003
45
Hi.

If you would look at:

in Internet Explorer 6 and then Firefox 1.0.4 (or so), and look at the short list menu on the left that says QUICK LINKS, you'll see that the list of 4 items in IE is slightly indented, yet in Firefox the bullets fall neatly underneath the Q in QUICK.

My question is .. what do I need to do in order to get them to line up and appear the same in both IE and Firefox?

I can't seem to get it.

Please let me know if you see the problem.

Thanks,
Gary


Gary M. Gordon
 
For some obscure reason that happens only now and then IE applies twice as big a margin-left value than you specify. You would need to hack your way through that:
Code:
ul {
  margin-left: 20px;
  _margin-left: 10px; /* IE only */
}
 
For some obscure reason that happens only now and then IE applies twice as big a margin-left value than you specify.

I've not looked at the CSS to find out, but that sounds like it could be the "double margin on floated elements in IE" bug. If so, the fix is to give the floated element a display of inline for IE only:

Code:
selector {
   _display: inline;
}

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Vragabond,

So silly. haha And thank you.

But adding _margin .. with a different set of CSS for the margin worked.

I can't believe that I had to literally hack this to get IE to work properly.

I even tried using IE7 (javascript) .. but that didn't fix it either.

Thanks again,
Gary


Gary M. Gordon
 
I can't believe that I had to literally hack this to get IE to work properly.

If I were you, I would get very used to it.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top