dauvm
10-05-2002, 11:22 PM
Hey everyone...
I am writing a page for a client right now, and I want to write the page in valid XHTML 1.0. this isnt that hard and I center the main table using this clip of css:
html, body
{
height: 100%;
width: 100%;
margin: 0;
padding: 10;
}
table
{
height: 100%;
width: 100%;
text-align: center;
}
well that was all fine in good and worked great (and validated) in all the new browsers (ie 5.5, mozilla 1.1, opera 6.05), but I'm at a college now and 99 percent of the computers here still have old netscape on it, so I also tested in that, and of course about 1 line of the css actually worked on netscape and it looked horrible.
So what I want to do is use a script that will determine if it is a browser that is capable of handling css well or not, and if it's not, like netscape 4.x then redirect it to www.domain.com/old/index.html which would be a page laid out for the old browsers without using css and not validateable?? :confused:
If anyone has an easy way to do this that works i'd appreciate it, or even just the url to a good tutorial, I don't mind.
Thanks
I am writing a page for a client right now, and I want to write the page in valid XHTML 1.0. this isnt that hard and I center the main table using this clip of css:
html, body
{
height: 100%;
width: 100%;
margin: 0;
padding: 10;
}
table
{
height: 100%;
width: 100%;
text-align: center;
}
well that was all fine in good and worked great (and validated) in all the new browsers (ie 5.5, mozilla 1.1, opera 6.05), but I'm at a college now and 99 percent of the computers here still have old netscape on it, so I also tested in that, and of course about 1 line of the css actually worked on netscape and it looked horrible.
So what I want to do is use a script that will determine if it is a browser that is capable of handling css well or not, and if it's not, like netscape 4.x then redirect it to www.domain.com/old/index.html which would be a page laid out for the old browsers without using css and not validateable?? :confused:
If anyone has an easy way to do this that works i'd appreciate it, or even just the url to a good tutorial, I don't mind.
Thanks