July 31, 200917 yr Hello, I have a slight issue. I am creating a website and wish for it to site within the centre of the browser. I have managed to do this for all browsers except IE5.5 Anyone know how I can centre align a website for IE5.5
July 31, 200917 yr There is a hack for this which involves setting the text-align property to center in IE5.5 and then over-riding that in every other div. I think. So: #wrapper { margin: 0 auto; /*for the decent browsers*/ text-align: center; /*for IE5.5/* width: 800px; /*or whatever*/ } Should center it. Then you just need to add text-align: left; to each other div to put the text back to the left side.
July 31, 200917 yr http://www.webdesignerforum.co.uk/topic/2478-how-to-center-a-site-using-css/ But seriously... why cater for 5.5? I know a lot of people still use IE6 - but how many use 5.5? I would just use some conditional comments which state: *If you are viewing this site in IE5.5 or lower then you are clearly a bloody moron who doesn't deserve to breathe the same air as normal human being - upgrade your browser to at LEAST IE8 and get with the times.* Do it
July 31, 200917 yr I agree with terydinho, but if the fix is as easy as is it, then you might as well do it, no? I would not spend any considerable time with IE5.5, but a 5 minute fix like that is worth it, in my opinion.
Create an account or sign in to comment