WordPress.org

Ready to get started?Download WordPress

Forums

Float and corresponding wrap not working? (6 posts)

  1. Coonce-Ewing
    Member
    Posted 9 years ago #

    Hi, I've got a WordPress 1.2 installation (my host hasn't upgraded to 1.5 yet). I have a menu on the right that I'd like the content to wrap around and then fill under the menu down the rest of the page.

    I've tried changing the position and float attributes but I'm not having any luck. Currently I've got my content set with a huge padding to ensure that the menu doesn't block it out.

    The site is at: http://www.coonce-ewing.com
    The css is at: http://www.coonce-ewing.com/wp-layout.css

    Any thoughts or suggestions would be greatly appreciated

  2. ColdForged
    Member
    Posted 9 years ago #

    Try this CSS.

  3. Coonce-Ewing
    Member
    Posted 9 years ago #

    ColdForged...

    Thanks for looking at this for me. I put it in place (I'm still trying to figure out what the differences are). Afterwards I had to adjust the border on my menu to avoid doubling up the top and right.

    This then leaves the comments link flush against the right border. If I add a padding value to the content area, I then end up with my menu border having a gap in it.

    (you can see this on my site currently).

  4. ColdForged
    Member
    Posted 9 years ago #

    I've modified the CSS I posted. Try the new version.

    (The initial problem was a couple of things: you were trying to absolutely position the menu which doesn't work with a float in the way you wanted it. Once that was done the text flowed around it appropriately. To adjust the spacing issues this time, I removed your pad on content, and added a new .post selector with a right margin to keep it from being against the right edge under the menu. To control the spacing of the comment link beside the menu and left-margin was applied to the menu.)

  5. Coonce-Ewing
    Member
    Posted 9 years ago #

    Thanks a lot!

    That explanation makes more sense to me as well (the .post selector).

    I'm fairly new to CSS and totally new to WordPress. I've been working on trying to make the default template my own. I really appreciate the help.

  6. ColdForged
    Member
    Posted 9 years ago #

    You're most welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.