Skip navigation
Currently Being Moderated

Centering layout

Jul 10, 2012 8:20 AM

Can anyone please help me, I am new to dreameaver and i cannot seem to get my page layout to center. Tried putting both left and right margins to auto and also tried them both on 0 but still not displaying in center of page!  www.clockdoctors.co.uk/blog/

 

Appreciate any help!


 
Replies
  • Currently Being Moderated
    Jul 10, 2012 9:14 AM   in reply to Ness_quick

    Have you tried just putting a <center> tag around the area you wish to center? So if you want the whole site centered, just put a <center> tag after <body> and </center> before </body>.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 9:54 AM   in reply to Ness_quick

    Move your opening 'container' <div> tag which is current above your banner.jpg to directly after your opening <body> tag.

     

    <div id="container">

    <img src="banner.jpg" alt="banner" width="1181" height="210" id="Image1">

     

     

    So your code looks like:

     

     

    <body>

    <div id="container">

    <div id="apDiv2">

     

     

     

    Then move your closing 'container' </div> tag which is currently after your closing spry menu </ul> to after your apDiv4 closing tag.

     

        <li><a href="inspiration.html">Insiration for your service</a></li>

    </ul>

    </div>

     

     

    So your code looks like:

     

     

    <div id="apDiv4"><img src="images/footer.jpg" width="816" height="106"></div>

    </div><!-- end container -->

     

     

    Then add the below to your css:

     

    #container {

        width: 1181px;

        margin: 0 auto;

        position: relative;

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points