WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Calendar Styling Problems (4 posts)

  1. Samuello
    Member
    Posted 5 years ago #

    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...

  2. Austin Matzko
    Member
    Posted 5 years ago #

    #wp-calendar caption {
    text-align:center;
    }
  3. Samuello
    Member
    Posted 5 years ago #

    Thanks!

  4. Jbert
    Member
    Posted 5 years ago #

    Hi all,

    How would one add to the CSS or maybe change php in tag to show all previous days in a red color. That way when you look at calendar todays date would be easily recognized.

    Thanks

    Jbert

Topic Closed

This topic has been closed to new replies.

About this Topic