|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
"img"'s in mozilla 1.4 and ie 6
Does anyone know the different ways that the latest versions of ie and mozilla handle images. Unfortunately I'm working on a development server so I can't show my example. However I'm putting multiple images in div's. In mozilla the images are seemless, like they should be with a border, margin, padding of 0. In ie though there is a 5 pixel or so gap. Any help would be appreciated.
|
|
#2
|
||||
|
||||
|
RE:
I ran across this a while ago, and my solution was with stylesheets. I know there's probably a million ways to solve the problem and mine might be the least effective, but I hope you'll be able to get pointed in the right direction with the following:
Try setting the images' margins and padding to 0px; if that doesn't help, try using negitive values to force the images over... for example div > img {margin: -1.5em;} As a general rule of thumb, I start my stylesheets wih * {margin: 0cm; padding: 0cm;} so that I'm starting from a "clean slate." Best of luck, -Tim |
|
#3
|
|||
|
|||
|
RE:
Thanks for the help. Started with 0 values for all of the attributes in the style sheet and there will still gaps. I'll give the negative values a try tomorrow.
I wish there was an easy way to tell the differences on how the different browsers interperate the attributes. I have seen pages that show what they support, but there are certain things that they both seem to do, only differently. Argh, very frustrating. Thank you for the suggestion. |
|
#4
|
||||
|
||||
|
RE:
You might be seeing breaks due to whitespace between your image tags. I believe different browsers handle this differently depending on your DOCTYPE too. Try removing all the whitespcae (spaces, tabs, newlines, etc.) from between the images.
|
|
#5
|
||||
|
||||
|
RE:
Quote:
Yes, this might work as well. Try something similar to <img src="foo.gif"><img src="bar.gif" > with no spacing inbetween the img tags. -Tim |
|
#6
|
|||
|
|||
|
RE:
I tried changing the whitespace but it didn't make a difference. I'm going to move the pages to a different server so everyone can view it and post the code. This is driving me nuts!!!
|
|
#7
|
||||
|
||||
|
RE:
Simply show us your markup; I'd be more than happy to take a look at it and see if I can help.
-Tim |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > "img"'s in mozilla 1.4 and ie 6 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|