Welcome visitor
* Login
* Register
It is currently May 26th, 2019, 3:03 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  text over an image
PostPosted: April 22nd, 2009, 4:18 pm 

Posts: 26
hi this is my first post here. My question is if i can write text over an image? Not as a background on all the page but justa image as with <img> thing. I get the text either before or after the image but i cant overlay the text on the image. thanks for any help.


Top
 Profile  
 
  Re: text over an image
PostPosted: April 22nd, 2009, 7:25 pm 

Posts: 65
Create 2 divs with their position set to absolute. Put your image inside one div and the text inside the other. Feel free to change the width and height to fit your images as well as the top left margins
<div style="width:400px; height: 200px; position:absolute; top:30px; left:340px; text-align:center;">
<img src="img.gif">
</div>
<div style="width:400px; height: 200px; position:absolute; top:30px; left:340px; text-align:center; color: #ff0000;">
text text text
</div>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron