Results 1 to 7 of 7
  1. #1

    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>

  2. #2
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,090
    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...>
    Last edited by bear; 12-12-2009 at 09:05 AM.
    Your one stop shop for decentralization

  3. #3
    Join Date
    May 2007
    Location
    Cardiff, United Kingdom
    Posts
    511
    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


  4. #4
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,090
    Personal preference.
    Except for things like border attributes, I like separate lines, personally.
    Your one stop shop for decentralization

  5. #5
    Join Date
    Nov 2009
    Location
    México
    Posts
    23

  6. #6
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,090
    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?
    Your one stop shop for decentralization

  7. #7
    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>

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •