View Full Version : how do i....
Thenetguru
08-08-2003, 12:37 PM
can anyone please tell me how i can overlay text on a image using html, i use notepad for my web page design and another graphics package for the images.:confused: :OO
tmmoose
08-08-2003, 05:24 PM
The Simple Table Way....
<table width="300" height="233">
<tr>
<td background="your image.jpg">Your text goes here.</td>
</tr>
</table>
yellow_belly
08-09-2003, 12:39 AM
Originally posted by tmmoose
The Simple Table Way....
<table width="300" height="233">
<tr>
<td background="your image.jpg">Your text goes here.</td>
</tr>
</table> Ya - :D
themadpoet
08-09-2003, 10:56 AM
I tried that trick of yours David and it didn't really work, the text was to high, you could move it left or right but not on the vertical.... any suggestions?
Joe the Large
08-09-2003, 12:35 PM
Instead of setting vetical-align to middle, try experimenting with percentages until it's aligned the way you want it. In other words, use vertical-align: something % .
HTH
Joe
themadpoet
08-09-2003, 12:58 PM
Thanks Joe but good old David B fixed it..... apparently you need to insert a line-height: nnpx; where nn is the height of the image height making the whole thing look like this.
<p style="width: 300px; height: 233px; background: url('your_image.jpg'); line-height: 233px; vertical-align: middle; text-align: center">A paragraph would go here.</p>
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.