Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-30-2009, 05:58 PM Image in Table Cell
Artistjohn's Avatar
Junior Talker

Posts: 2
Name: John Channell
Location: New York
Trades: 0
I am currently learning CSS but need to update a website that uses tables. I have an image placed in the table cell, but I don't want it to repeat. The table is on white and the image is a torn paper that end on a white background. Is there anyway to do this, or do I need to recreate the table using specific table heights?
Artistjohn is offline
Reply With Quote
View Public Profile Visit Artistjohn's homepage!
 
 
Register now for full access!
Old 03-31-2009, 02:29 AM Re: Image in Table Cell
skywind's Avatar
Skilled Talker

Posts: 74
Trades: 0
use the 'no-repeat'
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
skywind is offline
Reply With Quote
View Public Profile Visit skywind's homepage!
 
Old 03-31-2009, 08:52 AM Re: Image in Table Cell
Artistjohn's Avatar
Junior Talker

Posts: 2
Name: John Channell
Location: New York
Trades: 0
Tried that, but t didn't work. Am I placing it in the wrong part of the code? I get an error when it is placed. Here is my code:
<td width="522" align="center" valign="top" background="gallery/paper-gnd.gif" repeat="no-repeat">

I have also tried:
....background-image"gallery/paper-gnd.gif" repeat="no-repeat">
Artistjohn is offline
Reply With Quote
View Public Profile Visit Artistjohn's homepage!
 
Old 03-31-2009, 09:26 AM Re: Image in Table Cell
Average Talker

Posts: 21
Name: alex flaming
Trades: 0
Hi,

Why you did not try with CSS.

Can make a class like below

table_speic
{
background: #fff image.jpg no repeat;
}

In above code in red color show background color, blue color show image url, and in last what you want with image repeat or no repeat

and can use it with your TD

<td class="table_speic"></td>

I think CSS can help you better.

Thanks
Alex
lowcostwebhosti is offline
Reply With Quote
View Public Profile Visit lowcostwebhosti's homepage!
 
Old 03-31-2009, 09:42 AM Re: Image in Table Cell
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
background: #fff image.jpg no repeat;
That would be incorrect. The CORRECT syntax is :
background: #fff url(image.jpg) no-repeat;

no-repeat has NO effect on a table as you used it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image in Table Cell
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27676 seconds with 12 queries