Page 1 of 1
2 pixel background alligns with firefox, but not with IE.
Posted: Thu Feb 09, 2006 1:31 am
by Shaneckel
http://www.shaneckel.com/diane/index.php
Works fine in firefox. off by a pixel in IE.
Has anyone come across this problem or know a way to fix it.
any help would be greatly appreciated.
Posted: Thu Feb 09, 2006 5:17 pm
by wtf
Set cellpadding=0 and cellspacing=0 on all your tables. If you omit those values browser will use some default value which may be causing your problem.
However, probably the best thing to do is to exclude lines from the images that are composing your layout. Convert those images to gif with trasparent background.
Posted: Thu Feb 09, 2006 8:25 pm
by Shaneckel
Clever thinking, but dosen't help me.
anyone else know how to solve this?
Posted: Thu Feb 09, 2006 8:51 pm
by neophyte
Code: Select all
<td width="75%"> <div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="715">
What's up with the DIV? Why not <td width="75%" align="center"> ?
I'm not sure where you are off by a pixel. Could you describe it. I don't have IE.

Posted: Fri Feb 10, 2006 11:38 am
by Shaneckel
well, its a table with multiple cells. The entire table sits from the top 1 pixel lower in IE than in mozzilla.
thus ruining my design.
Posted: Fri Feb 10, 2006 11:45 am
by matthijs
First of all, validate your html. Add a doctype. Then, what neophyte suggested, I would try to remove the div and see what that does. You never know.
Posted: Fri Feb 17, 2006 11:39 am
by Shaneckel
well, it turns out IE sucks. I ended up just using index gifs instead. And I got away with that because of the pixelated background.
The lesson today would be that you can't use curves to a pixelated background and have it line up in all browsers.
Posted: Fri Feb 17, 2006 12:27 pm
by MinDFreeZ
I've done it before you silly guy.
lol
-yea, I can see why you dont want to use that transparent crap.. its rough looking.... post the old one for me and ill see if there are any css hacks u can use (sounds like u just needed to move the whole table down 1 px for IE, that shouldn't be a problem at all)
Posted: Fri Feb 17, 2006 12:57 pm
by Chris Corbyn
Shaneckel wrote:well, it turns out IE sucks. I ended up just using index gifs instead. And I got away with that because of the pixelated background.
The lesson today would be that you can't use curves to a pixelated background and have it line up in all browsers.
Glad you realised it

The fact is... IE doesn't follow the box model standards set by the w3c and there's a whole host of issues in relation to borders, padding and margins... I won't go into it... but there's a lot.
Posted: Fri Feb 17, 2006 1:19 pm
by Roja
d11wtq wrote:
Glad you realised it

The fact is... IE doesn't follow the box model standards set by the w3c and there's a whole host of issues in relation to borders, padding and margins... I won't go into it... but there's a lot.
Always refer to references if they are available.
One list of horrors in IE:
http://www.positioniseverything.net/ie-primer.html
Posted: Fri Feb 17, 2006 1:42 pm
by Moocat
I actually managed to develop a page which was entirely BLANK in IE somehow

Posted: Fri Feb 17, 2006 2:24 pm
by MinDFreeZ
Moocat wrote:I actually managed to develop a page which was entirely BLANK in IE somehow

You just confused me
Posted: Sat Feb 18, 2006 8:31 am
by Chris Corbyn
Moocat wrote:I actually managed to develop a page which was entirely BLANK in IE somehow

IE does this sometimes when there are combinations of floating layers with non-float layers. Sometimes the page springs to life when you click on a particular area, or even just mouseover it. it can usually be solved by applying float to some of the other layers. Yet another annoying bug I know.
Posted: Sun Feb 19, 2006 11:42 am
by Shaneckel
aestetically it looks fine because the background is pixelated like the sides. I've been in a <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>-hole of busy lately, but I can see this problem coming up in the near future. Thanks for all the help and the reinsurance of IE's terribleness.
If I was IE I'd have a mouth full of shotgun with my toe on the trigger.
Posted: Sun Feb 19, 2006 11:57 am
by MinDFreeZ
Glad u got it figured out, but if u ever have a problem with something being a little off in IE, post it again - u probably could have fixed it with a small IE CSS hack.