• Resolved marzar00

    (@marzar00)


    G’day all,

    I have just created a new theme for my site and am having a little bit of trouble getting the sidebar and content to align. In a non-wordpress version I made to test the theme everything aligned perfectly, however now for some reason it doesn’t and instead the content begins inline with the base of the sidebar. http://www.marzar00.finditmax.com

    Thanks for any support,

    Marzar

Viewing 2 replies - 1 through 2 (of 2 total)
  • both the sidebar (.leftnav) and the content are set to display:block.

    what you really want is to float the sidebar left (float:left) and float the content area right (float:right)

    in order to achieve this, you may wish to make the margins of those two areas 0 for starters, you can then increase them later once you verify that the content wraps as it should.

    Right now, the 250px margin on the content area wouldn’t allow it to float correctly, so it needs to be reduced.

    Give that a shot for starters.

    Thread Starter marzar00

    (@marzar00)

    Haha, realised the error. I had the sidebar as a class, it should be an ID!

    thanks for you help though Ivovic.

    Marzar

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar and content side by side’ is closed to new replies.