[SOLVED] Styling of breakdown of date format on CGBlog
Posted: Wed Mar 21, 2012 6:50 pm
Hi, I am trying to style my CGBlog summary date individually by Day, Month and Year, something like this:
On my CGBlog sumamry template its calling the date:
...and so I am trying to style like this, but its not recognizing the individual items of the date:
Any idea what I am doing wrong? Thanks in advance
Code: Select all
<div class="date">
<span class="month">May</span>
<span class="day">12</span>
<span class="year">2011</span>
</div>
Code: Select all
{if $entry->postdate}
<div class="CGBlogSummaryPostdate">
{$entry->postdate|cms_date_format}
</div>
{/if}
Code: Select all
.CGBlogSummaryPostdate {
width: 60px;
height: 60px;
background: #0084ff;
border: solid 2px #b9b9b9;
-moz-border-radius: 5px;
border-radius: 5px;
padding: 5px;
color: #fff;
}
.CGBlogSummaryPostdate .day {
color: #fff;
font-size: 10px;
}
.CGBlogSummaryPostdate .month {
color: #ce40d0;
font-size: 14px;
}
.CGBlogSummaryPostdate .year {
color: #44902c;
font-weight: bold;
font-size: 16px;
}