Skip navigation
Currently Being Moderated

Container Div wont center

Aug 12, 2009 10:45 AM

Hi

Im tyring to center my container div here;

 

http://www.tfproperty.co.uk/1/template.html

 

 

I've given it the following CSS;

 

.container {
    margin-left: auto;
    margin-right: auto;
}

 

Shouldn't this work? Thanks

 
Replies
  • Currently Being Moderated
    Aug 12, 2009 10:57 AM   in reply to jdldn

    Here's a page from DW's FAQ Section. Hopefully it helps

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 12, 2009 10:58 AM   in reply to jdldn

    Try giving it a width - it looks as though your content isn't all sitting within the container.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 12, 2009 11:02 AM   in reply to Kath-H

    Give your container a temporary coloured border so you can see what's going on.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 12, 2009 11:12 AM   in reply to jdldn

    Most welcome I really do recommend the web developer extension for Firefox - it will outline everything for you so you can see such problems.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 12, 2009 11:15 AM   in reply to Kath-H

    By the way, you have 'appartment' on the photo, hope you don't mind my mentioning

     
    |
    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