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

background image within style sheet

Status
Not open for further replies.

leeolive

Programmer
May 14, 2002
46
GB
Hi!

I have an external style sheet and am trying to add a background image and ensure that it does not tile. I am busy trying to get the image to load. The code I have is as follows. can't figure out why it doesn't work. Everything else works fine.

Code:
.body {background-color: white; background-image: url([URL unfurl="true"]http://www.ollyweb.co.uk/newollyweb/CREATE/graphics/largeboxbg.jpg);[/URL] font-family: arial, verdana, century gothic; color: 000000; text-align: left; font-size: 15px;  font-weight: none; text-indent; text-align: justify}

Does anyone have any ideas?
Thanks
Lee
 
ok, i'm not sure if you realize this, but you have 2 text-align elements, i took one out. also, hex colour values should start with #. but try this:

.body {
background: url(" #ffffff;
background-repeat: none;
font-family: arial, verdana, century gothic;
color: #000000;
font-size: 15px;
font-weight: none;
text-align: justify
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top