WordPress.org

Ready to get started?Download WordPress

Forums

XHTML code to create sidebar within a post? (2 posts)

  1. cbjorlin
    Member
    Posted 2 years ago #

    I am trying to create sidebars within WordPress posts -- I want to separate out links or FAQs. Would anyone happen to know the best XHTML code for this?

  2. You could float the stuff you want to separate out by editing it in HTML view. Example:

    <div id="linkside">
    put your links here
    </div>

    Then in your stylesheet:

    #linkside {
     float: right;
     width: 200px;
     padding: 0 0 10px 10px;
    }

    Lots more about floats: http://css.maxdesign.com.au/floatutorial/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags