Reputation: 10713
I'm creating a calendar with appointments. I pull the appointments from a database, from two tables.
Here is my css:
<style type="text/css">
.rsMonthView .rsAptContent
{
background: #D0ECBB;
}
.rsDayView .rsAptContent
{
background: #D0ECBB;
}
.rsWeekView .rsAptContent
{
background: #D0ECBB;
}
.rsTimelineView .rsAptContent
{
background: #D0ECBB;
}
</style>
However, I don't want it to be applied to every cell of the calendar, but only those appointments which come from the first table. The code for my css is in the .aspx file. How to make an if command in the .aspx file which will check from which table is the appointment?
Upvotes: 1
Views: 141
Reputation: 8153
this is really vague, but here goes: if your tables are sibling elements you can target them in your css linke so: table + table .rsMonthView .rsAptContent {background: #D0ECBB}
but sibling selector has poor support in most versions of IE
Upvotes: 1