Hi,
I'm stuck with a css calander i am making and would like to know if it is poss for the css & php to change a colour depending on the day off the week?
i.e. monday=yellow...tuesday=bluee...wednesday, pink...etc
Here is my html and css code
HTML
Code:
<ul class="date">
<li>
<font class="number">1</font>
<br />
<?php include ("jan/1.txt"); ?>
</li>
<li>
<font class="number">2</font>
<br />
<?php include ("jan/2.txt"); ?>
</li>
</ul>
CSS
Code:
.number {
font-family: Verdana, Geneva, sans-serif;
font-size: 24px;
color: #F90;
}
.date li {
background-color:#FC0;
padding: 10px;
padding-top: 5px;
padding-bottom: 5px;
height: 100px;
width: 98px;
list-style-type: none;
float: left;
margin-right: 8px;
margin-bottom: 8px;
}
.date li:hover {
background-color:#FC3;
}
Thanks guys
Bookmarks