jcordoba
12-06-2007, 10:57 AM
Hello to all, hope you can help me in some way (even moral).
My website is a 1003px centered table with two columns (right/left) that has to run all the way from top to bottom.
To achieve this, i set a background image that aligns with the columns of the table and works perfectly in IE7, even when the browser window size is smaller than the 1003px and the horizontal scrolling bar appears, the background and the table aligns.
But in FF2, when the browser window is smaller than the 1003px, the background which is set to center is "pushed" to the left, and does not aligns with my table anymore.
A brute-force way to avoid this, would be to be able to identify when the window size is lower than the 1003px and change the background position from "center" to "left".
However, i'm looking for some attribute that in firefox, prevents the background from beign centered (and ultimately it's left margin hidden) when the inner-width is lower than the 1003px. Note that in IE7 and the window is small, it is how it works, the background is stopped from beign centered and remains with a fixed position to the left which allows the alignment with my table.
My code:
background: url(template/insideFinal_01.jpg);
background-position:center top;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
height: 100%;
My URL: http://villa.infolinksa.com/ws/EmiCurnow/CURNOWANDCURNOW/intranetlogin.asp
Try viewing the page in different window size both in IE7 & FF2
THANKS! :D
My website is a 1003px centered table with two columns (right/left) that has to run all the way from top to bottom.
To achieve this, i set a background image that aligns with the columns of the table and works perfectly in IE7, even when the browser window size is smaller than the 1003px and the horizontal scrolling bar appears, the background and the table aligns.
But in FF2, when the browser window is smaller than the 1003px, the background which is set to center is "pushed" to the left, and does not aligns with my table anymore.
A brute-force way to avoid this, would be to be able to identify when the window size is lower than the 1003px and change the background position from "center" to "left".
However, i'm looking for some attribute that in firefox, prevents the background from beign centered (and ultimately it's left margin hidden) when the inner-width is lower than the 1003px. Note that in IE7 and the window is small, it is how it works, the background is stopped from beign centered and remains with a fixed position to the left which allows the alignment with my table.
My code:
background: url(template/insideFinal_01.jpg);
background-position:center top;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
height: 100%;
My URL: http://villa.infolinksa.com/ws/EmiCurnow/CURNOWANDCURNOW/intranetlogin.asp
Try viewing the page in different window size both in IE7 & FF2
THANKS! :D