[thelist] relative paths in CSS
Kid Stevens
kstevens89 at comcast.net
Sun Aug 11 19:47:00 CDT 2002
../images.bg.gif takes you up a directory so you start there if your
directory is mysite/images/bg.gif.
I keep my CSS file in the root and then going down the tree is easy.
Versus coming up then down. So my relative path is always down
grafs/autos/ford/trucks/rangermine/invranger.jpg from the CSS file.
../../images/bg.gif goes up two then down to the gif.
At 9:22 PM -0300 8/11/02, Rob Oviatt wrote:
>How do you express relative paths in CSS? I'm using the body style (below)
>to load a background image for a web site I've built. It works fine in IE,
>but Mozilla 1.0 doesn't find the file. If I remove the "images/" and drop
>a copy of the gif in the same directory, Mozilla can find it.
>body {
> font-weight : normal;
> font-family : "Times New Roman", Times, serif;
> font-size : 12px;
> background-image: url(images/bg.gif);
> background-position : center;
> color: #2A4F6D;
> background-color : #fab400;
--
Sincerely,
Kid Stevens
"Reading maketh a full man; conference a ready man; and writing an exact man."
-Francis Bacon
More information about the thelist
mailing list