Grow your CSS skills. Land your dream job.

CSS Layouts 2 columns

  • # May 2, 2009 at 10:27 pm

    I have been having this question in my head for weeks and I just wanted to know what everybody else does is.

    Lets say we have a two column layout.. a sidebar and a main content. the sidebar will be 200px and the main content will be 500px.

    To be short the question is that I have seen several solutions and would want to know whats the recommended.

    1. Would be to float both to the left, and main content to have a margin of 200px.
    2. Would be to float the sidebar to the left and just have a margin for the main content of 200px.
    3. As Andy Budd describes it is to float the sidebar to the left and the main content to the right, wrapped in a in a container.

    Please let me know what the best practice is, I have seen so many different ways and it just drives me nuts..

    Thanks,

    David

    # May 3, 2009 at 3:29 pm

    I would float one to the left and one to the right. It makes the most logical sense, and therefor is my choice.

    # May 3, 2009 at 4:25 pm

    no 3 is what i always do

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

You must be logged in to reply to this topic.

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