Jump to content
  • 0

Забыл как выделить область с картинкой по размерам большего элемента


RichV
 Share

Question

c5a92cb74ad8t.jpg

Товарищи, напомните, плиз..

При наведении курсора на текст область выделяется только по тексту, а не по картинке. Хотя и текст и катринка звключены в один тег a


<a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_post_thumbnail(array(90,90)); ?>
<h4> <?php the_title(); ?></h4>
<? kama_excerpt("maxchar=100"); ?>
</a>

Как сделать выделение по всему блоку (т.е. по высоте максимального элемента входящего в тег а : по картинке или тексту)?

КССы вот такие


#lateslist li a:link, #lateslist li a:visited {
background: none repeat scroll 0 0 transparent; display: block;
margin: 0 0 15px 0;padding: 0; text-decoration: none;
}
#lateslist li a:hover, #lateslist li a:active { background: #99cc33; }

Edited by RichV
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy