Support » Themes and Templates » XHTML code to create sidebar within a post?

  • cbjorlin

    (@cbjorlin)


    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?

Viewing 1 replies (of 1 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    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/

Viewing 1 replies (of 1 total)
  • The topic ‘XHTML code to create sidebar within a post?’ is closed to new replies.