Grow your CSS skills. Land your dream job.

Twitter Bootstrap – Help Getting Started

  • # February 21, 2012 at 3:49 pm

    Hi guys,

    I’ve started working on the page which you can find here, using Twitter Bootstrap and noticed that by default the container div on the fluid layout is set to align left.

    I know it’s very basic, but how would I amend the css to center this website, whilst maintaining its fluid layout?

    Thanks,

    Ross

    # February 21, 2012 at 10:29 pm

    Well, if it’s in a wrapper div, and that div has a set width (even a %) just add

    margin: auto;

    to the wrapper.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".