F
fitwell
Real newbie re CSS here. I'm getting a bit of experiencing moving
around CSS and have played a bit with it. But need some help in one
particular area.
The trouble is in learning the language to translate code that was for
online-directing to something now folder-directed, mainly background
images. Since I couldn't figure out how to get the CSS to look in a
particular folder for an image for a particular page, I ended up
initially taking the coding completely out of the CSS and then adding
it to the html page, the way I do know how to do. That was great.
Background image now appeared. However, the "no repeat" value in the
CSS all of a sudden had significance since it now shows repeated
throughout the webpage whereas it only appeared at the top when the
CSS handled the image.
So, looks like I'll have to figure out how to convert path properly.
I did google this and look it up in TopStyle's help but I'm guessing
it's not common to switch URL-based coding to an HDD-based kind since
I didn't find anything.
The info in CSS is this:
..bodybackgrnd {
BACKGROUND-IMAGE:
url(http://www.stargate-sg1.com/home/common/images/background3A.jpg);
BACKGROUND-REPEAT: no-repeat
}
and I'm just pointing all graphics and the CSS file to a folder called
"images" in the same spot where the HTML files are (that way, no
absolute paths so the webpages can be moved anywhere and the coding
isn't restricted to one path - i.e., can be burned to CD and it'll
still work when that backup is brought back anywhere on the hdd).
So instead of being that URL to get the background image, it now
resides in this path, in other words:
images\background3A.jpg
How to get that info in the CSS?
Thanks!
around CSS and have played a bit with it. But need some help in one
particular area.
The trouble is in learning the language to translate code that was for
online-directing to something now folder-directed, mainly background
images. Since I couldn't figure out how to get the CSS to look in a
particular folder for an image for a particular page, I ended up
initially taking the coding completely out of the CSS and then adding
it to the html page, the way I do know how to do. That was great.
Background image now appeared. However, the "no repeat" value in the
CSS all of a sudden had significance since it now shows repeated
throughout the webpage whereas it only appeared at the top when the
CSS handled the image.
So, looks like I'll have to figure out how to convert path properly.
I did google this and look it up in TopStyle's help but I'm guessing
it's not common to switch URL-based coding to an HDD-based kind since
I didn't find anything.
The info in CSS is this:
..bodybackgrnd {
BACKGROUND-IMAGE:
url(http://www.stargate-sg1.com/home/common/images/background3A.jpg);
BACKGROUND-REPEAT: no-repeat
}
and I'm just pointing all graphics and the CSS file to a folder called
"images" in the same spot where the HTML files are (that way, no
absolute paths so the webpages can be moved anywhere and the coding
isn't restricted to one path - i.e., can be burned to CD and it'll
still work when that backup is brought back anywhere on the hdd).
So instead of being that URL to get the background image, it now
resides in this path, in other words:
images\background3A.jpg
How to get that info in the CSS?
Thanks!