Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background image in table

Status
Not open for further replies.

EdFredenburgh

Instructor
Apr 30, 2002
62
GB
Another query! Can I place a background image in a table, above its background colour, in a set position, and without it repeating horizontally or vertically?
 
You should use CSS for this. e.g.

Code:
<html>
<head>

<style type="text/css">
    #bgTable
    {
        background: #99f url(bgimage.gif) no-repeat top center ;
    }
</style>

</head>

<body>
    <table id="bgTable">
        <tr>
            <td>Cell 1</td>
            <td>Cell 2</td>
        </tr>
        <tr>
            <td>Cell 3</td>
            <td>Cell 4</td>
        </tr>
    </table>
</body>
</html>

Check out forum215 for any queries you might have regarding HTML / CSS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top