Support » Fixing WordPress » How to align the sidebar to the top

  • In HTML I would use a tag like

    <td valign=”top”>

    in order to get that column in my table to align to the top of the row. However, in dealing with WordPress and stylesheets, I am lost. What code can I insert on my style sheet in order to get my sidebar to align to the top?
    And… where should I insert the code on my stylesheet?

    Thanks,

    Rich

Viewing 3 replies - 1 through 3 (of 3 total)
  • Usually I just assign the sidebar div to float left while the main content div to float right. Then lastly, I make sure that the two is not too wide that they overlap each other. Because if they do, one will be on top of the other instead of aligned side-by-side from the top.

    I’m not sure if this is what you’re asking. Hope this helps.

    Thread Starter niccolls

    (@niccolls)

    I believe this is my problem. The left column is on top of the right column, rather than side-by-side. How can I widen the columns? Which file do I need to make this change in?

    Thanks!

    @ nicolls, first, make sure you don’t have any images in any of your posts that are abnormally wider than the rest of the content, as that will create the same effect.
    Otherwise, in your style sheet, there will usually both a #content, and #sidebar, and will have width values, in addition to margin and padding. All of these values can effect the position of the sidebar.
    http://codex.wordpress.org/CSS would be a good starting point for familiarizing yourself with CSS basics.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to align the sidebar to the top’ is closed to new replies.