A
A
Anton2014-08-04 15:46:42
css
Anton, 2014-08-04 15:46:42

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

2 answer(s)
K
Konstantin Velichko, 2014-08-04
@Zoxon

.news_div .preview_picture_news,
.news_div .zagolovok {}
ps btw this is class='news_div' class='news_hover' pornography

A
Anton Skimsk, 2014-08-04
@degty

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 question

Ask a Question

731 491 924 answers to any question