Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Image between background
Old 04-08-2011, 12:35 AM Image between transparent background
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
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
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
 
Register now for full access!
Old 04-08-2011, 01:00 AM Re: Image between background
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
OK, a live link would be more helpful, but here goes: You've already constrained the proportions of the images (if they're all the same dimensions you could save yourself a lot of extra typing by putting those constraints in the master stylesheet before the float). You can alter the line-height or vertical-align, or check the margins and padding of the container to see what's throwing things off. Check here if you are unsure how to do these.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-08-2011, 12:30 PM Re: Image between background
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
vertical-align with negative value worked. Thanx
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
Reply     « Reply to Image between background
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27189 seconds with 12 queries