views:

660

answers:

4

If you look at www.kwikhousesale.co.uk in any FF, Google Chrome, Opera, IE8 etc. it displays fine. However, when using IE7 all the text shifts to the right resulting in much of the text appearing off the page. Please could somebody help me to resolve this issue?

+1  A: 

W3C's validity check shows a mistyped border attribute in line 81. If this does not help, you might want to have a look at the HTML Box Model in order to find out what is going wrong.

Adrian Grigore
A: 

There's some odd things going on with your markup there... the entire content of the body is wrapped in a form. I'd suggest fixing that and see where it gets you!

Richard John
I think most asp.net site have their contents wrapped in a form, don't they?
Sean
I've never done ASP.net before, so sorry if that's the case! That seems a really, really odd thing to do. Then again, it is Microsoft.
Richard John
It seems odd if you're used to other platforms such as PHP. In ASP.NET there are a number of server controls that you can use anywhere on your site, and the browser needs to know you're trying to talk to the server. I recommend playing around with it!
Sean
A: 

“text-align: center” on <body> is confusing IE into trying to center blocks you don't want centered. Avoid using “text-align: center” on high-level layout elements in IE.

bobince
A: 

Thank you to all of you who responded with ideas. I am pleased to say I have now fixed the problem. The solution was:

set #repeater to text-align:left