PDA

View Full Version : Page not aligned correct in chrome



kendalwood
Mar 11th, 2011, 02:03 AM
Yesterday I had this problem - I created this website in wordpress www.porthopehealthcentre.com
It displayed correct in firefox but not ie. There was an extra closing </div> tag in my header php. When I deleted it, it displayed correct in ie but not firefox.
So I added the below tag to my header.php file. It now displays correct in all browsers except google chrome, latest version.

What can I do to fix this so it displays correct in google chrome - anybody?
Thanks in advance - I really appreciate it.

[code]

<!--[if IE]>

<![endif]-->

<!--[if !IE]><!-->
</div>
<!--<![endif]-->

[code end]

Excavator
Mar 11th, 2011, 02:11 AM
Hello kendalwood,
You should look at fixing errors in your code before you start applying conditional comments in places they aren't needed.

Have a look at what the validator finds (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fporthopehealthcentre.com%2F) in your code.

When working with the validator, start from the top and fixing one error can eliminate several because of the cascading nature of the errors.

Of course, valid code is no guarantee your page will work right... it is a step in the right direction though.
See the links in my signature line about validation.

.