Position an icon on the right in the middle of a list item

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-04-02T09:24:44Z Indexed on 2010/04/02 9:33 UTC
Read the original article Hit count: 436

I have the following code which prints an img if the current page is selected. The issue i have is if the list item is a varied height i cant position it in the middle of the list item on the far right...

<li><?php echo $child->link($child->title); ?><?php echo (url_start_with($child->url) ? '<img src="images/ico-arrow.png" class="pointer">': null); ?></li>

how can i ammend the "TOP" so that it will position itself vertically no matter what the height using css

#bf-fest-list li { margin:0; padding:5px 25px; position:relative; } 
#bf-fest-list li a:hover {  color:#ec1c23; text-decoration:none; }
#bf-fest-list li.current { background:#a0a1a4; padding:10px 25px; } 
#bf-fest-list li.current a { color:#FFF; } 
#bf-fest-list li .pointer { position:absolute; top:10px; left:233px; } 

© Stack Overflow or respective owner

Related posts about css

Related posts about css-positioning