Publish and Be... Minipic.gif (3518 bytes)
pcpmini.gif (2265 bytes) ...Tabular!

 

 

Shaded table backgrounds


You can set a background colour for an entire table, or for individal cells. In Internet Explorer (but not Navigator) you can also give tables and cells graphical backgrounds.

ns.gif (1269 bytes)ie.gif (1254 bytes) To set a background colour for an entire table:

Publish And Be...
Tabular! Minipic.gif (3518 bytes) PC Plus

Add a bgcolor= attribute to the <table> tag, like this:

<table border="1" width="300" bgcolor="cyan">

ns.gif (1269 bytes)ie.gif (1254 bytes) To set background colours for individual cells:

Publish And Be...
Tabular! Minipic.gif (3518 bytes) PC Plus

Add bgcolor= attributes to the individual cell (<TD>) tags like this:

<td bgcolor="red">

Note that if you add bgcolor= to the table's first <TD> (the top left cell), then that colour will also be applied to any other cells which don't have their own bgcolor= attributes.

ns.gif (1269 bytes) (4.0) ie.gif (1254 bytes) You can also give tables and cells graphical (image) backgrounds:

To set a graphical background for an entire table...

Hey Man Everything's
Far Out!  

... add a background= attribute to the <TABLE> tag to tile the image across the whole table, like this:

<table border="1" background="bg1.gif">

(if the image is smaller than the table, it's tiled; if it's larger, then it's cropped)

To set background images for individual cells...

Hey Man Everything's
Far Out!  

... add background= attributes to individual <TD> tags, like this:

<td width="33%" align="center" background="bg1.gif">


Back to menu