Forums

[resolved] Calendar Styling Problems (4 posts)

  1. Samuello
    Member
    Posted 10 months 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. filosofo
    Member
    Posted 10 months ago #

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

    Thanks!

  4. Jbert
    Member
    Posted 8 months 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

Reply

You must log in to post.

About this Topic