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
Problem overlaying an image
Old 05-16-2010, 12:14 PM Problem overlaying an image
ecd
Experienced Talker

Posts: 33
Name: Erik
Trades: 2
Hello,

If you look at www.sandlotcards.com you'll see and an image of a baseball card. Next to it you'll see a .png image of two pieces of tape I'm attempting to overlay over the baseball card however it keeps getting put next to the card. Does anyone know why this is happening? Here is the .css

/* Cards */

div.cardbox{
display: inline;
float: left;
margin: 0px 10px 10px 0px;
background: #746949;
}

div.cardbox:before{
position: absolute;
z-index: 2;
content: url(images/card_overlay.png);
}

img.card{
padding: 10px;
}


If you view the code the html is question is here...

<div class="cardbox">

<img alt="" height="137" src="prodimages/2010_Topps_BB_Example.jpg" width="100" align="left" class="card"/>

</div>



Thanks,
ECD
ecd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2010, 05:22 PM Re: Problem overlaying an image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
What's with the <span class="t1"> ??? If it's a HEADING use a proper HX tag and style it with css to whatever you want.

Put your text in proper paragraphs. You've got a beginning <p>, text with a ton of unnecessary <br> tags. Get rid of the <br>'s and put the text in paragraphs, you can control the spacing of the paragraphs with your CSS.

As for your tape, get rid of the align="left" that you've got on the baseball card image and the tape will pull back to about where it belongs. The alignment should be in your CSS, not in your html.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

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


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

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem overlaying an image
 

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.42369 seconds with 12 queries