Support » Themes and Templates » internet explorer issue

  • Hi there im having a lot of trouble with a very minor piece of code..
    my blog looks fine in chrome, safari and firefox. However it’s aligned to the left in internet explorer, instead of the middle..

    the post CSS seems to be the issue, but i have played round for hours with no luck..
    here is the CSS i am currently using

    .post {
    	margin: 4.6em 0;
    	padding: 2.7em;
    	position: relative;
    	margin-left: auto;
    	margin-right: auto;
    	clear: both;
    	display: block;
    	height: 375px;
    	line-height: 19px;
    	width: 600px;

    if anyone can help i would be so highly grateful, this issue is the last hurdle before i can launch the site..

    thanks in advanced..


Viewing 2 replies - 1 through 2 (of 2 total)
  • Because you have error with doctype (Doctype always should go first, but you have <title> tag before it. That way IE trigger quirks mode (which does not undestand margin:auto).

    You need to fix it in header.php.



    Forum Moderator

    validation errors:
    often have negative effects in some browsers

    there is a title tag before the DOCTYPE declaration in header.php:

    <title>Betty Wants In - Blog</title><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
    <html xmlns="" xml:lang="en" lang="en">
    <head profile="">
    	<title> - </title>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    edit header.php and move this title tag further down, to where the empty one is.
    there is no guarantee that this is all that is needed to be changed,
    but valid code is essential for cross-browser compatibility.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘internet explorer issue’ is closed to new replies.