WordPress.org

Ready to get started?Download WordPress

Forums

get_calendar() size? (3 posts)

  1. Jonathan Dingman
    Member
    Posted 9 years ago #

    Is there a way to make get_calendar() smaller? I'm testing it at http://beta.bleakgeek.com for my new design layout and I was hoping to get it smaller than it currently is. I checked on the codex site, but the only parameter I can see to be passed is daylength. Any ideas how to make it smaller?

  2. mr1973
    Member
    Posted 9 years ago #

    you can adjust all the calendar font and cell sizes via css.
    i personally used:

    /* Begin Calendar */
    #wp-calendar {

    border: 1px solid #ddd;
    empty-cells: show;
    width: 160px;
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color:#000;
    font-size: 7.7pt;
    }

    #wp-calendar #next a {
    padding-right: 1px;
    text-align: right;
    text-decoration: none;
    background-color: #ffffff;
    }

    #wp-calendar #prev a {
    padding-left: 1px;
    text-align: left;
    text-decoration: none;
    background-color: #ffffff;
    }

    #wp-calendar a {
    display: block;
    color: #527434;
    background-color: #cccccc;
    }

    #wp-calendar caption {
    text-align: left;
    font-family: 'Arial Black';
    color: #A04444;
    font-size: 7.5pt;
    text-transform: uppercase;
    }

    #wp-calendar td {
    padding: 0px;
    text-align: center;
    background-color: #ffffff;
    }

    #wp-calendar #today {
    color: #A04444;
    }

    #wp-calendar td.pad:hover { /* Doesn't work in IE */
    background-color: #ffffff; }
    }
    /* End Calendar */

    hope this helps ;-)

  3. Jonathan Dingman
    Member
    Posted 9 years ago #

    Slightly helpful. A bit too small, but I will make sure to check it on different resolutions and then just modify as needed. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags