Table cell background image

  • beautyfiend
  • Newbie
  • Newbie
  • beautyfiend
  • Posts: 8
  • Loc: London

Post 3+ Months Ago

Hi,
How can I have a background image in one of the cells of my table?
So that I can insert text and other objects over the background image.
Thanks a lot.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Code: [ Select ]
<td style="background:url('path/to/image.png');">cell content</td>
  • beautyfiend
  • Newbie
  • Newbie
  • beautyfiend
  • Posts: 8
  • Loc: London

Post 3+ Months Ago

thank you!
  • bishop_ian
  • Newbie
  • Newbie
  • bishop_ian
  • Posts: 14

Post 3+ Months Ago

<TABLE>
<TR>
<TD ROWSPAN="2">
<IMG SRC="pics/image.jpg" width="575" height="???">
</TD>
</TR>
<TR>
<TD>
headline
</TD>
<TD>
here is the content.
</TD>
</TR>
</TABLE>
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

bishop_ian wrote:
<TABLE>
<TR>
<TD ROWSPAN="2">
<IMG SRC="pics/image.jpg" width="575" height="???">
</TD>
</TR>
<TR>
<TD>
headline
</TD>
<TD>
here is the content.
</TD>
</TR>
</TABLE>

This will not work as the image will push the content down ... also, it's better to use lowercase tags for XHTML 1.0 strict validity ...

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 59 guests
  • 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.