margin-top is not respected

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

margin-top is not respected

Post by aneuryzma »

hi,

when I click on a image on the bottom to enlarge and reduce it, the image below it remains far away and the distance between pictures change.

It's easier to see than to explain:

http://www.milcom.lu/kickstart/index.ph ... rectory=61

In safari everything is working correctly, so I was wondering why.. if I play with Firebug, I noticed that if I refresh the same value
margin-top:20px
the pictures come back in the same position.. it seems to be an update problem

thanks
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: margin-top is not respected

Post by Zoxive »

If i understand your problem, its working for me both under windows XP with firefox 3.5, and Ubuntu and 3.5.

The only thing i could see is the lower picture may give off the impression that the margins are changing on top because the paper in the picture is not flush on top of the image like the first image. I only noticed this because I use two different monitors, one is a lower quality then the other and i could not see the edges of the image. But on my better monitor i can see it plan as day.
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

Re: margin-top is not respected

Post by aneuryzma »

What I mean is in the attached picture. I'm using Firefox on Mac.

I have this problem when I enlarge and then reduce the above.
If I enlarge and reduce the picture below it comes back in the correct position (correct margin-top)

The strange thing is that if I edit the css value (margin-top:20px) with Firebug to.. let's say.. 19px and then to 20px back.. it moves in the correct position. :banghead:

So it is like if I need to apply again the css..

I've also tried to use a timer with some delay in javascript but nothing..
Attachments
Picture 1.png
Picture 1.png (236.75 KiB) Viewed 479 times
Post Reply