bobmurphy
09-11-2003, 09:00 PM
hi
i am currrently working on a page which ( to cut a long story short ) uses a negative margain style for the main div tag to position the content in the centre of the screen no matter what screen resolution the user has up -- works fine too ( and validated too ) except i tried it in nn 4.7 and it dosent understand the negative margains and screws up the page -- so i will write a bit of JS to adapt things when it find a browser that doesn't understand the css -- but i would like to see which browsers it DOESn'T work in - i have tried NN 7.1 IE 6 MOZ 1.4 and opera 6.04 -- it works fine on these -- is there anyone out there who has a different browser who wouldn't mind loading the page and telling me is it in the centre or no !!! - i am particularly interested in IE 5 IE5.5 and the NN's after 4.7-- and earlier moz's ----- thanks ........
http://www.oneweekofdays.com/testerfolder/master/index.html
ps i didnt think there was anything more i could do with the css short of trying a completely dfferent method ( not going to happen ) but if there's a genius out there who could improve on the code then i'd be blessed --- as it is the class main is defined as :::::
.main {position:absolute; height:420px; width:770px; top:50%; left:50%; border: 1px solid #000000; margin:-210px 0px 0px -385px; background-color: #666666}
big thanks !!!!:p
i am currrently working on a page which ( to cut a long story short ) uses a negative margain style for the main div tag to position the content in the centre of the screen no matter what screen resolution the user has up -- works fine too ( and validated too ) except i tried it in nn 4.7 and it dosent understand the negative margains and screws up the page -- so i will write a bit of JS to adapt things when it find a browser that doesn't understand the css -- but i would like to see which browsers it DOESn'T work in - i have tried NN 7.1 IE 6 MOZ 1.4 and opera 6.04 -- it works fine on these -- is there anyone out there who has a different browser who wouldn't mind loading the page and telling me is it in the centre or no !!! - i am particularly interested in IE 5 IE5.5 and the NN's after 4.7-- and earlier moz's ----- thanks ........
http://www.oneweekofdays.com/testerfolder/master/index.html
ps i didnt think there was anything more i could do with the css short of trying a completely dfferent method ( not going to happen ) but if there's a genius out there who could improve on the code then i'd be blessed --- as it is the class main is defined as :::::
.main {position:absolute; height:420px; width:770px; top:50%; left:50%; border: 1px solid #000000; margin:-210px 0px 0px -385px; background-color: #666666}
big thanks !!!!:p