I have a problem I don't understand.
I'm creating an inbox, and I want the hovered message to change the background colour.
I am using spans to place the items, and I reckon this might be the reason that I cannot see any effect when hovering.
This is my css code:
#mainPanel #inbox h3 #fromSubjectHeader {
display: inline-block;
font-style:italic;
width: 177px;
float:left;
text-align:left;
}
#mainPanel #inbox h3 #dateHeader {
display:block;
font-style:italic;
width:177px;
text-align: left;
float:left;
}
#mainPanel #inbox a #fromSubject {
display: inline-block;
width: 173px;
float:left;
text-align:left;
padding-left: 4px;
}
#mainPanel #inbox a #date {
display:block;
width:173px;
text-align: left;
float:left;
padding-left: 4px;
}
#mainPanel #inbox a {
font-weight:normal;
text-decoration:none;
color:#000000;
display:block;
font-size:11px;
line-height: 16px;
width:535px;
}
#mainPanel #inbox a #unreadInbox {
font-weight:bold;
color:#165E8A;
}
#mainPanel #inbox a:hover {
background:#B0DFF2;
}
In the html code its called like this
<a>
<span id="fromSubject"></span>
<span id="fromSubject"></span>
<span id="date"></span>
</a>