Getting sidebar in new custom theme to sit on side instead of bottom (2 posts)

  1. zakiazakiazakia
    Posted 2 years ago #


    I'm having a problem getting my sidebar in a theme I'm developing from scratch to sit on the side. I'm completely new to WordPress so I'm trying to teach myself how to navigate by doing a custom theme.

    Here is the index page code:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. Or use pastebin.com instead. ]

    #header {font-size:15px;
    font-family: mono;
    text-align: center;
    #sidebar {
    list-style: none;
    font-family: 'Times New Roman';
    color: blue;
    float: right;
    #tagline {
    font-family: courier;
    text-align: center ;
    #content {
    font-family: arial;
    color: pink;
    #nav {
    font-family: courier;
    color: red;
    list-style: none;
    text-align: center
    #footer {
    font-family: courier;
    text-align: center;
    And the sidebar.php file:
    <ul id="sidebar">
     <li id="about">
      <p>This is my blog.</p>
     <li id="links">
    <li><a href="http://example.com">Example</a></li>
  2. zakiazakiazakia
    Posted 2 years ago #

    sorry, the first is the style.css obviously)

Topic Closed

This topic has been closed to new replies.

About this Topic