Answer the question
In order to leave comments, you need to log in
How to highlight two elements in css ?
Friends, this is the question of how to select two elements in css, namely the picture and the text
, here is the body code
<div class='news_div' class='news_hover'>
<a href="<?=$arItem["DETAIL_PAGE_URL"]?>">
<img class="preview_picture_news" border="0" src="<?=$arItem["PREVIEW_PICTURE"]["SRC"]?>"/></a>
<div class='news_info'>
<div class='zagolovok'><a href="<?echo $arItem["DETAIL_PAGE_URL"]?>"><?echo $arItem["NAME"]?></a></div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
.news_div .preview_picture_news,
.news_div .zagolovok {}
ps btw this is class='news_div' class='news_hover' pornography
thanks, and if they have different styles, for example (the picture is highlighted with border: 1px solid #d7d7d7; and the text is color:#820er4 )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question