hi,
/* Main Heading (on the top) */
.heading_top {
background-image: url('styles/style1/images/style1_03.gif');
background-color: 000000;
border-size: 0px;
width: 100%;
}
/* END */
The above is the css i used.... when i load this in the browser with the html page, the browser thinks its loading...
'http://dhost.info/gmforum/rethink/styles/style1/images/styles/style1/images//style1_03.gif'
Why?1!?!?! I need it short linked not big,
kittycat
08-05-2004, 04:56 PM
Don't know if this will help or not, but try adding ../ infront of the URl for the background. But a full url will basically always work.
It might help if we knew the setup of your folders, which one the main page is located in.
try this...
background-image: url('style1_03.gif');
if this image is located in the same directory as the css file.
the URL takes the current location of the css and adds on whatever you put into the background URL, thus your problem.
Thats the thing, i cant add a full url as i will need to transfer these files to another 2 domain names...
Also, it is not in the same dir....
if i do:
/
then that will have domain/dirsimentioned/image
It will then be in the wrong dir
one of these scenarios should help solve your problem...
./
will start at the root main folder.
/
will start at the current folder.
../
will start one folder higher than the current folder.
../../
will start two folders higher than the current folder.
find out where the image folder is "relative" to the css coding and adjust your coding as desired.
when i do ...
background-image: url('/styles/style1/images/style1_03.gif');
it does:
root/styles/style1/images/style1_03.gif
when i need
current dir..
hmmm, must have gotten my paths mixed up.
try the other options i posted and see if they do the trick.
if you want to start, starting from the same directory, then leaving off the first slash like you did in the very start should be correct unless there is another part in your coding somewhere that is stating a BASE HREF or something.
a link to your page in question online would help.