Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add sold sign to image

Status
Not open for further replies.

Skippie1

Technical User
May 7, 2012
29
ZA
Good day,

I am doing a website for a car dealer. My client can upload their own stock into their website. I store the detail in a database and when somebody opens the "showroom" page it pulls in all the database entries.

My question is: How can I add a sold sign to a picture that is already in the database without doing it manually. Are there some way to do it in PHP?
 
Just overlay it using CSS.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Hi, Thanks for the reply. I am a bit of a novice. If I have the image of the car and the sold image in my web directory, how do I use the CSS overlay function. Do you perhaps have a place where I can go and read up on how to do this?
 
Just have the two images in the same div. The div is the size of the car image. Position the sold sign using absolute positioning and at the top right of the div.
[Code CSS]
.sold{position:absolute;top:0px;right:0px;}
[/code]
[Code html]
<div>
<IMG SRC=carimage.PNG/>
<IMG class=sold SRC=soldimg.PNG />
</div>
[/code]


 
Hi, it is working sort of. Let me explain what I am trying to do.

I doing a website for a second hand car dealer. I made it that they can do their own vehicle uploads and descriptions of the vehicles. So when the showroom.php is opened it pulls in the entries from the SQL database.

When I add your code it does appear but on top of the main page and not on the vehicle image that is pulled in from the database.

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top