Month View Day Cell Height

Posts about customizing the look and feel; Describe and link to your custom templates for phpicalendar 2.X

Month View Day Cell Height

Postby brew » Wed Aug 20, 2008 4:34 pm

Hi there, I would like to make the cell height in the month view shorter but can't find a way to do so. Can anybody offer any ideas? http://www.brewpse.co.uk/diary.html
brew
Member
 
Posts: 5
Joined: Mon Aug 18, 2008 1:47 pm

Re: Month View Day Cell Height

Postby brew » Wed Jul 28, 2010 6:03 am

So your looking for the .css file for which ever template you are using. in root/templates/(chosen template)/default.css

Look for the lines
/* Month View */

.monthback { background-color: #A1A5A9; }
.monthreg { background-color: #fff; height: 205px; width: 105px; text-align: left; vertical-align: top; }
.monthoff { background-color: #F2F2F2; height: 205px; width: 105px; text-align: left; vertical-align: top; }
.monthon { background-color: #F2F9FF; height: 205px; width: 105px; text-align: left; vertical-align: top; }
.montheventtop { background-image: url(images/side_bg.gif); border-top: 1px solid #A1A5A9; }
.montheventline { border-right: 1px dotted #A1A5A9; }

And that's the height you need to change.
brew
Member
 
Posts: 5
Joined: Mon Aug 18, 2008 1:47 pm

Re: Month View Day Cell Height

Postby Parasyte » Tue Aug 31, 2010 11:42 am

The CSS in more recent versions is quite a bit different (this looks like 2.31). For version 2.4, the tables (including the month display) was changed so that it can stretch horizontally. As a result, the horizontal space will be filled, but each day cell in the month will not be a perfect square most of the time; the height of each cell is still fixed, but the rows will stretch vertically if there are too many events in any single day.

This is one portion I need to experiment with in version 2.5; Changing the events in the month view to actually span days. Similar to the way All-Day events appear in the week view.
Parasyte
Member
 
Posts: 165
Joined: Thu Jan 15, 2009 4:31 pm


Return to Customizing appearance

Who is online

Users browsing this forum: No registered users and 1 guest

cron