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

Background Image Help?? 2

Status
Not open for further replies.

BoniR

MIS
Mar 29, 2005
138
US
Hello~
I have a coldfusion web page that I use as a header for multiple pages. The problem is that my background image (which contains a bar at the top of the page) is duplicating further down the page and blocks some of the text. I have heard that there is an attribute that can be added to keep this from happening...
Any chance anyone can help?
Thanks in advance!!!
Boni
:)

Boni J. Rychener
Hammerman Associates, Inc.
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
800-783-2269
 
You can do this with CSS, provided you know your clients have browsers that support it.

Here is an example.
Code:
body { color: black; background-color: white; background-image: url(background.jpg); background-repeat: repeat-x; }

This tells it to repeat across the x plane, (left and right).

I double checked in IE6 and Firefox and both displayed it correctly, using a 500 pixel high image with a stripe at the top.

Hope that helps.
pt

putting the "new" in "newb".....
 
You are awesome! Thanks!
Boni
:)


Boni J. Rychener
Hammerman Associates, Inc.
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
800-783-2269
 
if you include the doctype to enforce "standards mode" in IE you should have less of an issue with browser compatibility. here is an FAQ to help.

faq770-5887

Unless you have users using 4th gen browsers (which only a handfull of people use on their vintage 486's) you shouldn't have a problem with CSS.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Thanks TruthInSatire! The FAQ helped!
I love your quote by the way! :) :)
Boni

Boni J. Rychener
Hammerman Associates, Inc.
Crystal Training and Crystal Material
On-site and public classes
Low-cost telephone/email support
FREE independent Crystal newsletter
800-783-2269
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top