WordPress.org

Ready to get started?Download WordPress

Forums

Help with DIV that does not float (4 posts)

  1. WP Monkey
    Member
    Posted 5 years ago #

    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/

  2. esmi
    Forum Moderator
    Posted 5 years ago #

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

  3. WP Monkey
    Member
    Posted 4 years ago #

    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?

  4. WP Monkey
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags