View Full Version : layer position problems under NS
bradeck
03-18-2003, 07:35 PM
I set the style of my div to the following. Given the fard-coded values, I expect it to never move. However, on resize of the main window it does move and not a a 1 to 1 ratio with the resize. However, it only does this with NS. Any ideas?
style="position: absolute; top: 1; left: 0"
brothercake
03-18-2003, 08:06 PM
at a guess, because you've not specified a unit - is that 1 pixel? or 1 percent? you don't say; some examples:
left:1px;
// 1 pixel
left:1em;
// 1 em; not sure exactly what an em is, but what it does is set an absolute size or position which scales - so that when the text gets bigger, all em-defined objects move/get bigger as well :)
left:1%;
// 1 percent of the window width
bradeck
03-18-2003, 09:40 PM
I added px to all the values and all stayed the same so I image that's the default. em affected the value faster (maybe it's a measurement instead of pixels) but still the weird result.
Thanks!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.