| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
1px Difference between IE and FF, killing me | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Trying to line up container, and container bottom, and getting a 1px difference, between IE and FF. I know its not a lot, but it looks totally stupid because the footer is designed to integrate into the container.
Here is my code (including body): Code:
Please help, as I am pulling my hair out with this one.
__________________
4.4 Code:
|
|||||||||
#2
|
|||||||
|
|||||||
![]() Welcome to the wonderful world of IE compatibility. This is one of the most annoying things about web development - trying to get something to look exactly the same cross-browser. There are a few solutions:
First, you can specify a different stylesheet all together for IE, but that is a bunch of extra work. Next, you can use display: inline; or display: table-cell; which sometimes fixes the issue. Last, you can use the IE hack to give a different margin to IE, which is putting an _ before something. For example, if you want padding to be 20px for FF, but 19 for IE, you'd show it like this: padding-top: 20px; _padding-top: 19px; Try one of those and see if they help.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
Thanks Balinor, I tried the last one, but it didnt seem to work, this is the code I have: Code:
Please let me know if I did something wrong.
__________________
4.4 Code:
|
|||||||||
#4
|
|||||||
|
|||||||
![]() Which version of IE is giving you trouble?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Quote:
7.0
__________________
4.4 Code:
|
|||||||||
#6
|
|||||||
|
|||||||
![]() Ah, that hack won't work then. Try the display: inline; method.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||||
|
|||||||||
![]() Quote:
Never used that before, where would it go in the code? -ds
__________________
4.4 Code:
|
|||||||||
#8
|
|||||||
|
|||||||
![]() .Container_Bottom { padding-top:20px; background: no-repeat center url('images/container_bottom.png'); display: inline; }
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Quote:
Just makes the whole bottom part disappear
__________________
4.4 Code:
|
|||||||||
#10
|
|||||||
|
|||||||
![]() Tough to assist on this one as I usually have to try about 10 different things before it works
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|