Hi,
The flag used in the following code have transparent backgrounds at top & bottom due which the text is not properly aligned with the country flag. Removing transparent background would be an arduous task. Help me through css.
Image is using .simple_img class.
Flag Image (Example) : Image
Code:
.coveragetab {
background: #ffffff;
border: 1px solid #C8C8C8;
padding: 0px 10px 3px 10px;
margin: 0 5px;
font-size: 12px;
font-family: Tahoma;
}
.simple_img {
padding: 0px;
margin-top: auto;
margin-right: 4px;
margin-bottom: auto;
margin-left: auto;
display: inline;
float: left;
}
HTML Code:
<div class="coveragetab" style="margin: 0 5px;">
<h3><img class="simple_img" src="/wp-content/uploads/icons/flags/24/pk.png" title="Team 1" style="width: 18px;height: 18px; float:none;">Team 1 vs <img class="simple_img" src="/wp-content/uploads/icons/flags/24/lk.png" title="Team 2" style="width: 18px;height: 18px; float:none;">Team 2 - 1st Match</h3>
<b>Venue: </b> Venue here! Venue here
<div style="border-bottom:1px solid #CCCCCC; margin-bottom:3px; padding:0px 0px 10px 0px; clear:both;"></div>
<b>Watch live coverage: <a href="#">TV</a></b>
</div>
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
Last edited by asmalik12; 04-08-2011 at 12:59 AM..
Reason: It wasn't a suitable title
|