![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can I change newsContainer background color with mousover in following example of my code? div class="newsContainer"><div class="newsTitle><a href="#">My news title</a></div div class="newsText">My news text My news text My news text My news text /div></div Which one do you want to change? |
#3
| |||
| |||
|
|
div class="newsContainer"><div class="newsTitle><a href="#">My news title</a></div div class="newsText">My news text My news text My news text My news text /div></div Which one do you want to change? The basic method is element_or_id_or_class:hover { background-color: #xxx; } Be aware, though, the IE applies :hover *only* to the <a> element. |
#4
| |||
| |||
|
|
div class="newsContainer"><div class="newsTitle><a href="#">My news title</a></div The basic method is element_or_id_or_class:hover { background-color: #xxx; } Be aware, though, the IE applies :hover *only* to the <a> element. I want to change newsContainer background. Yes I have noticed that IE has problem with that. Is there any other solutions with pure css? No. :hover+background is the only way in CSS. |
#5
| |||
| |||
|
|
Be aware, though, the IE applies :hover *only* to the <a> element. |
![]() |
| Thread Tools | |
| Display Modes | |
| |