hPage.com Forum
Remember Me?
  #1 (permalink)  
Old 08-09-2011, 11:05 AM
Banned
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 8 Times in 5 Posts
Default Background Image For Table

How to add a background image for a table???
I need the HTML code for it....
Reply With Quote
  #2 (permalink)  
Old 08-10-2011, 05:45 AM
Senior Member
 
Join Date: Jan 2011
Location: Berlin, Germany
Posts: 124
Thanks: 0
Thanked 29 Times in 27 Posts
Default

Example for a small (2x2) table with blue background
HTML Code:
<table border="1" width="100%" bgcolor="#0000FF">
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>
The editor 2 gives you the possibility to select the bg color directly.

Last edited by c-designer; 08-10-2011 at 05:51 AM.
Reply With Quote
  #3 (permalink)  
Old 02-23-2012, 09:17 AM
Banned
 
Join Date: Feb 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To insert image in table you have to use css.
<head>
<style type="text/css">
table { background: url("URL of img") no-repeat; }
</style>
</head>
<body>
<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
</table>
<body>

Set the height & width of table according to image.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:29 PM.
Archive - Top