WordPress.org

Forums

[resolved] Twenty Ten - Issue with CSS for the Sidebar (7 posts)

  1. dg5
    Member
    Posted 4 years ago #

    I have created a child theme of Twenty Ten. All I did was create a style.css to override the style.css in the Twenty Ten theme. Works great. Nice and simple. But while my CSS changes to the header and the main column work, none of the changes work for the sidebar. It works in FIrebug, but then when I add to the style.css, it remains the same. Anyone have an idea why and how I can do this?
    Thanks

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    can you post a link to your site?

  3. dg5
    Member
    Posted 4 years ago #

    davidgerlach.com
    thanks

    fyi
    this is code i put into style.css, exactly copied from firebug as i did for changes to main column and navigation bar.

    .widget-title {border: solid 1px #999999; padding-bottom: 5px;}
  4. Root
    Member
    Posted 4 years ago #

    you tried div#primary etc {} ?

  5. dg5
    Member
    Posted 4 years ago #

    hmm. not .widget-title ?

  6. alchymyth
    Forum Moderator
    Posted 4 years ago #

    you have (at least) one mistake in your style.css

    #access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > a {
        color: #FFFFFF;
        background: #ff0000;
    
    /*Sidebar*/

    (missing } )

    which stops the styles further down from being applied.

    try to run http://jigsaw.w3.org/css-validator/ for instance

  7. dg5
    Member
    Posted 4 years ago #

    fixed that. thanks for pointing out what was missing. looks like css is working now. many thanks

Topic Closed

This topic has been closed to new replies.

About this Topic