On 9/2/06, Designer <[EMAIL PROTECTED]> wrote:
I have a one year calendar, where each day is a table cell. I have CSS
and php controlling the visual presentation of it.   If a day is
'booked' it is assigned to be an event and shows up via a CSS class thus:

.event {
    color: #666;
    background-color: #666;
    etc
}

in other words, the day appears as a grey block.

I'm assuming it is your PHP code adding the "event" class to your
table cells so you already know how the presentation should be
affected on the server-side of things... I think you should handle it
there rather than trying to fudge it with CSS or JS.

If you know which table cells should appear as a grey block on the
server-side then you can just print a &nbsp; in the cells instead of a
number, so when it is printed only the unbooked days appear. Or if you
are really hung up on having a box appear when it is printed, insert
in <img> instead of the number.

You might also want to consider what happens when a lot of days are
booked. You would be printing out a page full of boxes with not many
numbers!

-- Justin


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to