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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background image w/ a bgcolor

Status
Not open for further replies.

TMac42

Programmer
Jul 24, 2000
83
US
I need to use a background image for my page. It's a tiling image that is a gradient from top to bottom. In addition, I need to use a bgcolor that is the same as the color of the bottom of my gradient so that any time my content extends so far down, the page will look normal. I have tried this a variety of ways, including putting all of my content in one large table and making the gradient that table's background but it still has a border around the edges of the bgcolor for the page (even w/ table set to 100%). I'm stuck. Can anyone help?
 
Background as a css property allows for a background color, background image as well as positioning that image and setting the repeat parameters. Your could look something like:
Code:
<body style="background: #ccc url(myGradient.jpg) repeat-x;">
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top