...

View Full Version : Image



Xiang
07-31-2002, 03:20 PM
Dear Sir,

How can I put the text in the center of the picture???


Thanks,


Xiang

mordred
07-31-2002, 03:27 PM
Huh? Please elaborate.

See also the "MUST READ" sticky post, paragraph 2, title "2) Be descriptive and articulate when asking your question!".

x_goose_x
07-31-2002, 03:28 PM
This can be done using positioning with layers or what I'd suggest is just making the image the background to a table/cell/layer and have the text in the element.



<table border="0" width="300" height="150">
<tr>
<td background="Sunset.jpg" style="text-align: center;">gfhfghgfhgfhgfhgf</td>
</tr>
</table>


Or:



<div style="width: 300; height: 150; background-image: url(Sunset.jpg); text-align: center;"></div>

snakedevil1
07-31-2002, 04:12 PM
and u might wanna add <td width=imagewidth height=imageheight> to get the image the right size, otherwise it may be cutt off or tiled.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum