468,510 Members | 1,736 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

CSS Margin problem

I'm having problems with a css layout where a margin is being inserted with
the wrong width. I believe it's my css that's at fault since it is wrong in
netscape 7.1, opera,7.11 and IE6 but I cannot see what is wrong.
The page with the problem is www.woodleyzebrasfc.com and the incorrect item
is shown under the left hand navigation menu under links. The link to ysr
has a margin applied which is causing the space between it and the next item
fifa rules. YSR is in a linkpic div, which has a margin of 0, but it appears
to have a margin applied which looks like 1em, the margin applied by
div#sidebar div, which is two levels up. I thought the margin applied
nearest the div has priority. The css file is at
http://www.woodleyzebrasfc.com/getcss.html

Can give me some clues as to what I'm doing wrong here ?

Regards
Tony
Jul 20 '05 #1
1 5018
Tony Benham wrote:
I'm having problems with a css layout where a margin is being inserted with
the wrong width. I believe it's my css that's at fault since it is wrong in
netscape 7.1, opera,7.11 and IE6 but I cannot see what is wrong.
The page with the problem is www.woodleyzebrasfc.com and the incorrect item
is shown under the left hand navigation menu under links. The link to ysr
has a margin applied which is causing the space between it and the next item
fifa rules. YSR is in a linkpic div, which has a margin of 0, but it appears
to have a margin applied which looks like 1em, the margin applied by
div#sidebar div, which is two levels up. I thought the margin applied
nearest the div has priority. The css file is at
http://www.woodleyzebrasfc.com/getcss.html

Can give me some clues as to what I'm doing wrong here ?


I don't have the time to play around with it to check but
my guess would be that you are wrong in assuming the
nearest margin has precedence...my experience is that
margins are cumulative...the margin applies to the
element no matter what margins are applied to
neighbouring elements

--
eric
www.ericjarvis.co.uk
"Hey Lord don't ask me questions
There ain't no answer in me"
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brian | last post: by
6 posts views Thread by Haines Brown | last post: by
22 posts views Thread by moocow | last post: by
19 posts views Thread by Thomas Mlynarczyk | last post: by
10 posts views Thread by Alan Silver | last post: by
1 post views Thread by innivive | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.