Announcement

Collapse
No announcement yet.

middle column centred

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    middle column centred

    Hi
    In an expanding three column site can someone tell me where I can apply a centre tag to ensure the content in the middle (main content) column in centred please.

    #2
    Not sure why you'd want to center content in a fluid layout, will look silly on large screens however, if you add a container into your central area that wraps all content in the central area and then apply a fixed width and margins to center it, that should work.

    <div id=“centerWrapper”>
    Central code here
    </div>

    And add to your stylesheet:

    #centerWrapper {
    width: 600px;
    margin: 0px auto;
    }

    Adjust the 600 width to suit your needs.

    Comment

    Working...
    X