hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Image Background for html tables
Reply

Forum Jump

Image Background for html tables

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Disabled
 
Join Date: Oct 2009
Posts: 81
Arrow

Image Background for html tables


Html tables can contain image background, colored background and borders of different size. This is the example:

<TABLE BORDER="0" CELLPADDING="4" ALIGN="Center" WIDTH="50%">
<TR>
<TD BACKGROUND="bg.gif" WIDTH="10%"></TD>
<TD BGCOLOR="#EAE8E8"></TD>
</TR>
</TABLE>



Sponsored Links
  #2  
Old
Community Leader
 
Join Date: Oct 2002
Location: Mayberry
Posts: 20,076
Indeed they can, though it would be better to use CSS to define it.
Code:
td.background{
	background-image: url(images/bg.gif);
        background-color: #EAE8E8;
}
Your page code would then be:
<TD class="background" width...>

__________________
Having problems, or maybe questions about WHT? Head over to the help desk!




Last edited by bear; 12-12-2009 at 09:05 AM.
  #3  
Old
Premium Member
 
Join Date: May 2007
Location: Cardiff, United Kingdom
Posts: 507
Quote:
Originally Posted by bear Claus View Post
Indeed they can, though it would be better to use CSS to define it.
Code:
td.background{
    background-image: url(images/bg.gif);
        background-color: #EAE8E8;
}
Your page code would then be:
<TD class="background" width...>


Why not this?

Code:
td.background{
    background: url(images/bg.gif) #EAE8E8;
}

__________________
Sam Asante ~ Web & User Interface Designer ~ SamAsante.com
World-Class cPanel Themes
Responsive WHMCS Themes



Sponsored Links
  #4  
Old
Community Leader
 
Join Date: Oct 2002
Location: Mayberry
Posts: 20,076
Personal preference.
Except for things like border attributes, I like separate lines, personally.

__________________
Having problems, or maybe questions about WHT? Head over to the help desk!



  #5  
Old
Newbie
 
Join Date: Nov 2009
Location: México
Posts: 23

  #6  
Old
Community Leader
 
Join Date: Oct 2002
Location: Mayberry
Posts: 20,076
Quote:
Originally Posted by Bingen View Post
Zebra Tables
What did that 4 year old article (Friday 11 February 2005) have to do with an image background for a table?

__________________
Having problems, or maybe questions about WHT? Head over to the help desk!



  #7  
Old
Newbie
 
Join Date: Nov 2009
Location: México
Posts: 23
Unhappy

Quote:
Originally Posted by bear Claus View Post
What did that 4 year old article (Friday 11 February 2005) have to do with an image background for a table?
It still works. But sorry I misunderstood because the class on the TD element.

Table background...

Code:
table#any {background: url(image.gif) repeat White}

<table id="any">
</table>

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
background image alecbradley Web Design and Content 10 11-17-2008 01:08 PM
image background Sops Web Design and Content 3 04-27-2006 10:58 PM
Background Image a1nerd Web Design and Content 6 09-16-2005 07:51 PM
Image background blend into web page background armin_van_buuren Web Design and Content 6 10-15-2004 11:19 AM
HTML Help...Background Looks off in Netscape SimonMc Web Design and Content 7 12-22-2003 09:08 PM

Related posts from TheWhir.com
Title Type Date Posted
11 Percent of Americans Believe HTML is an STD, and Other Surprising Findings Around Tech Jargon Blog 2014-03-04 15:36:03
Veterans Website, IE 10 Users Targeted in Possible Attempt to Steal Military Secrets Web Hosting News 2014-02-14 13:36:54
DreamHost CEO Talks Company Culture in NYT Interview Blog 2013-09-27 12:56:01
WHIR Events Scottsdale was slammin’ Blog 2013-04-19 15:30:00
Amazon Web Services Reduces Price of DynamoDB NoSQL, Adds Reserved Capacity Web Hosting News 2013-03-08 15:19:40


Tags
html codes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?