HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
backgroound image on td in table
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
quartzy



Joined: 26 Dec 2007
Posts: 405

PostPosted: Mon Mar 03, 2008 12:05 pm     backgroound image on td in table Reply with quote

Is it possible to place a background image behind another image. In a Table in the td tag.
This is the code I have but it is not working.
Code:
#papier table td {background-image: url('images4/tdback.jpeg');
background-repeat: no-repeat;}

and this is hwat I ahve in the HTML
Code:
<table id="papier" style="width: 100px">

so I am wondering if it is possible to add a background image underneath another image in a td. Could anyone let me know.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Mon Mar 03, 2008 12:31 pm     Reply with quote



Sure - it is possible, something like
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>   
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
<style type="text/css">
table.exampleone
{
   background: #00ff00 url('images/backgroundtable.gif') no-repeat;
}
td.exampletwo
{
   background: #00ff00 url('images/backgroundcell.gif') no-repeat;
}

</style>
</head>

<body>

<table style="width: 100%" class="exampleone">
   <tr>
      <td>lorem ipsum</td>
      <td class="exampletwo">lorem ipsum</td>
      <td>lorem ipsum</td>
   </tr>
</table>

</body>

</html>

_________________
Corey
Residential Office Solutions | Mile High Merchant Accounts | Expression Web Blog
quartzy



Joined: 26 Dec 2007
Posts: 405

PostPosted: Mon Mar 03, 2008 1:31 pm     re Reply with quote

OK I will try it with a class like that. Thanks.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial