PDA

View Full Version : CSS Background not showing


jfazar
02-14-07, 02:34 AM
Hey all,

So the background image I call through my stylesheet doesn't show in IE 7.0 the first time you view a page inside miva, EXCEPT the storefront. The storefront calls the css file like so:

<LINK REL="stylesheet" href="/miva/includes/style.css" TITLE="text/css">

For every other page on the site that line of text is in the global header. Here's the line of text in the css file:

body {background-image: url('/miva/graphics/00000001/website/siteBackground2.jpg'); background-repeat: no-repeat;}

Should I be calling it differently?

- Jim
www.bettercoffee.com (http://www.bettercoffee.com)

Vic - WolfPaw Computers
02-14-07, 03:02 AM
You should not need the /miva/ in the path if your domain settings have the correct path to graphics set. The correct syntax in the link path should be HREF="&mvt:global:baseref;/styles.css"

The call in your css itself, make sure your path is correct.

jfazar
02-14-07, 03:50 AM
I have the correct path to the graphics set as /miva/ in my store settings area. I added this ( HREF="&mvt:global:baseref;/styles.css" ) to call the css file from within miva and it works the same as before. In IE 7.0 the background only appears after reloading the page. Any other suggestions?