Support » Fixing WordPress » Calendar Styling Problems

  • Resolved Samuello

    (@samuello)


    I have been working on a theme and I cannot for the life of me figure out the get the month title block of the WordPress calendar centered. Here is my current blog, the calendar is down the bottom of the page: http://www.ourwalkabout.com/. I’ve tried all manner of permutations with the style.css section relating to the calendar and sidebar, just can’t get it in the middle of the table…

    Here is the sidebar.php code that calls the WordPress calendar:

    <li id="wp-calendar">
    <ul><?php get_calendar(1); ?></ul>
    </li>

    And here’s the styles for the calendar from style.css:

    #wp-calendar {
    display: block;
    margin: 0 0;
    padding: 0 0;
    text-align: center;
    }
    
    #wp-calendar td {
    padding: 2px 2px;
    color: #ebebeb;
    background-color: #000000;
    text-align: center;
    }
    
    #wp-calendar th {
    padding: 2px 2px;
    color: #ebebeb;
    background-color: #000000;
    text-align: center;
    font: bold;
    }
    
    #wp-calendar .pad {
    background: transparent;
    }

    Thanks for any help! This is driving me nuts…

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calendar Styling Problems’ is closed to new replies.