WordPress.org

Support

Support » Themes and Templates » Help with DIV that does not float

Help with DIV that does not float

  • I have added an second sidebar (sidebar2) to a theme and added a widget to it, but it is floating below the sidebar and content DIVs, at the bottom of the page instead of on the right side. I assume I’m doing something wrong in my CSS (position is relative, no float) or where I am calling it from within the index.php. Any thoughts?

    Site: http://kodiaktraining.com/

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    On that layout, you’d need to call the second sidebar after the post content and set it to float:right in the CSS.

    This is the order of the tags (in summary) in my index.php file:

    page
    content
    post
    sidebar
    sidebar2

    Where sidebar2 is the second sidebar that is floating to the bottom of the page not the top. Could this be a CSS property that needs to be set to top?

    And sidebar2 is already set to float right, so I’m wondering why it is aligned bottom. Do I need to add up all the widths of the page, sidebar, and content to make sure if there is enough room?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help with DIV that does not float’ is closed to new replies.