|
|
• Table Talk ! |
|
| ||||||
| • Introduction |
|
It is possible to place text on top of an image using tables.
The image you would like to be in the background of your text is used as a "background" in a <table>.
This lesson will work fine with Internet Explorer and MSNTV but not with Netscape.
Note: Netscape users can put text on an image using tables if they use the image as a background in a "table cell <td>" but will have to put all the text or other images also in that same cell (it can be hard to align the text an other images this way but it can be done).
The most imortant thing to remember to do is to add the width and height of the image to be used as the background image. This will define the available space you have when you align your text on top of the background image.
|
| • Example Of Text On Top Of An Image |
|
Below is a table with a background image with text on top of the image. Use the table cell alignment attributes to align the text where you would like it to be placed on top of the image.
Here is the table code for the above example.
<table cellpadding="7" cellspacing="0" border="0" background="draassunrise.jpg" width="475" height="312"> |
| • A More Elaborate Example |
|
Below is a more elaborate example of text on top of an image, you will see that I used a CSS style code for some of the text. I also added an image on top of the background image. You can even create clickable items on your background image.
Here is the table code for the above example. You will notice that I used a Clear Image in the table code below to help with the placment of my text and images. I have spaced the table code below out a bit so it is easier for you to see what's going on.
<table cellpadding="7" cellspacing="0" border="0" background="draassunrise.jpg" width="475" height="312">
<font size="2" color="#ffffff" face="verdana" style="background-color: #dc143c;"><b>
</td></tr>
<img src="clear.gif" width="1" height="125">
<tr><td align="left" valign="middle">
<font size="2" color="#ffff00" face="verdana"><b>
</td><td align="right" valign="middle">
<a href="tables-text-on-an-image2.html">
</td></tr></table>
| ||||||
|
|
Draac.Com Is Hosted By ValueWeb
Register UK domain names at Domain Names UK
|
|
| Advertise
| Link To Us | Status/Updates | Privacy Statement |
| Copyright © 1999-2003 Draac.Com
© All Rights Reserved. |