Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Background Image Issue in Sylesheet


jaybee1960

Recommended Posts

Posted

For security reasons, I have changed the web address shown in the sheet

My question is :-

I have included a background image in my file - but it does not show up - What am I doing wrong here

 

 

 

 

/*

$Id: stylesheet.css 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }

.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }

.productsNotifications { background: #f2fff7; }

.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #70d250; text-decoration: underline; }

 

BODY { background: url(http://www.porkstore.co.uk/rainbow.jpg); background-attachment: fixed}</style>

color: #000000;

margin: 0px;

}

 

 

}

 

A {

color: #000000;

text-decoration: none;

}

Posted

try

BODY {
 text-align: center;
 BACKGROUND-IMAGE:url(http://www.porkstore.co.uk/rainbow.jpg);
 color: #000000;
 margin: 0px;
}

Posted

does the image exist where you say it should? (can you call it up using the same url as in the style sheet? Also, everything in the url needs to be case-correct, including the .jpg.

 

Don't use the

background-attachment: fixed}</style>

stuff until you get the image working. (the </style> was copied in error from your html, so don't put it back in.)

 

Then check here.

 

Expert CSS help

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...