Forums

css for new sidebar (5 posts)

  1. joeyjoejoe
    Member
    Posted 5 years ago #

    I'm messing around with the css to make a new sidebar on the left (in addition to the one on the right), but the float: left; isn't working right. It floats the new sidebar on the left, the content in the center, and then the old sidebar with float: right; on the bottom below all the text. Can someone give me some help as to how to float both sidebars properly?
    Here's what I have so far:

    Right sidebar

    #sidebar {
    width:25%;
    float:right;
    padding:0 0 0 15px;
    color:#000000;
    line-height:1.5em;
    margin:0 0 16px 0;
    overflow:hidden;
    border-right-width: 12px;
    border-left-width: 1px;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #fff;
    border-left-color: #333333;
    }

    Now left sidebar

    #sidebar2 {
    width:25%;
    float:left;
    line-height:1.5em;
    overflow:hidden;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #333333;
    }

  2. moshu
    Member
    Posted 5 years ago #

    If you don't know CSS well, then you'd be better off to look for a 3 column theme:
    http://themes.wordpress.net
    It is never as simple as you think! And don't post any more "sidebar" code - the problem is not there.
    And for future reference: don't ask display, design related questions without a link and specifying what theme are you talking about.

  3. joeyjoejoe
    Member
    Posted 5 years ago #

    ok, my apologies. I'm using the "ism" theme by headsetoptions.org. You can view my site at http://www.cwnutimes.com. Any help making this second sidebar would be much appreciated by the people of China.

  4. moshu
    Member
    Posted 5 years ago #

    I am saying again: if your CSS skills are not at the level to understand why 25%+25%+60% will not work... then look for a 3 column theme.

  5. joeyjoejoe
    Member
    Posted 5 years ago #

    I never had 25-60-25. I changed that a long time ago. Can someone just tell me how to clear the center content by both the left and right sidebars?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags