This is a discussion on "Margin different in IE and Firefox when using float" within the Web Page Design section. This forum, and the thread "Margin different in IE and Firefox when using float are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Margin different in IE and Firefox when using float
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
I am trying to get a set of images with a rollover to sit in a container div with a margin of 20px on the right of each block. The problem is when I add float left the margin adds itself to the container block in IE but not FF. Any help, yes please! Note the container should be 400px and is being pushed out to 420px!!!
The css is:
|
|
|
|
#2
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
This is a screenshot of your code in FF. Is the wrong?
Last edited by Lchad; Jun 17th, 2007 at 11:22. |
|
#3
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
No thats what I want its what IE does to it
Thanks for the interest - I still feel a bit stupid when it comes to css layouts! And the difference in IE and FF frustrates me greatly! |
|
#4
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
It's exactly the same in IE7. So is IE 6 the cause of the problem?
|
|
#5
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
Yes I am using IE6
|
|
#6
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
Change your width in #thumbcontainer a { ... } to width: 170px;
|
|
#7
|
|||
|
|||
|
Thanks Karinne but I want the rollover space to be 180px just dont want the extra margin on the container that appears (in IE6) when you add float. I have the thing working inside a table but I am trying to be progressive and use divs where possible.
|
|
#8
|
|||
|
|||
|
Re: Margin different in IE and Firefox when using float
try this
|
|
#9
|
|||
|
|||
|
Thats fantastic Karinne ta very much. Did not know you could give a class to a link like that. It works in IE6 and FF !!
|
![]() |
| Tags |
| float, margin |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange margin display in firefox only | hhelen | Web Page Design | 1 | Apr 28th, 2008 15:36 |
| Float problem with Firefox | Emzi | Web Page Design | 10 | Apr 4th, 2008 12:02 |
| Float: Left with firefox | magnetica | Web Page Design | 2 | Aug 24th, 2007 16:55 |
| Margin area not tranparent in Firefox (works fine in IE6) | Breazile | Web Page Design | 2 | Nov 6th, 2005 17:09 |
| site ok in Firefox, not in IE : float problem?? | bbbobo | Web Page Design | 1 | Sep 30th, 2005 08:16 |