• Hi there,

    Been struggling with widgetizing an old theme and find myself with the sidebar header nested too far down and into the sidebar box. I know this is something simple that I am just missing, but how do I get the header box to move up and over so that it lines up with the box I have around the sidebar???

    css:

    #right_sidebar {
    background-color: #f9f9f9;
    border: 1px solid #666666;
    font-family: ‘Century Gothic’, Trebuchet MS, Verdana, sans-serif;
    font-size: 14px;
    margin-top: 0px;
    margin-left: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px;
    text-align: left;
    float: right;
    width: 200px;
    }

    #right_sidebar h2 { width: 200px; float: center; background: #000000; position: top-left; color: #ffffff; font-size: 14px; text-align: left; text-decoration: none; margin: 0; padding: 0; }

Viewing 2 replies - 1 through 2 (of 2 total)
  • do you have a link to your site?

    it is easier to check css issues on a live site than from a list.
    the place of the sidebar’s header is influenced by the html tags surrounding it, and could be influenced by styles somewhere else in your style.css.

    btw: there is no ‘float:center;’ in css:
    see https://www.w3schools.com/css/pr_class_float.asp

    and no ‘position:top-left;’ either.
    did you mean: ‘position:relative; top:0px; left:0px;’ ?

    Thread Starter grabutty

    (@grabutty)

    figured it out, but have run into other problems…. but… i will post with links in the future. thanks for the reply!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar CSS issues – h2 vs. ???’ is closed to new replies.