Forum Moderators: not2easy

Message Too Old, No Replies

css template

         

Dustbunny

11:50 pm on Aug 29, 2004 (gmt 0)

10+ Year Member



I bought a template Online that has css scripting,
this I have worked out and is working 100%.

But the trouble I now have is I have made 32 pages in another folder in my file manager Example: BaseDir/Smilies/

My Css Templates are located in the BaseDir.

Now I wish to add more Css templates into the BaseDir/Smilies folder, but when I upload the template to Smilies, the Css template will not sure up, where the graphics should be, I receive broken graphics.

I have also made a test file just in the BaseDir, and it works fine their.

Can anyone tell me how I will work out this problem without having to move all 32 pages and change all the codes.

BTY I am new to Css and I am a very Newbie to Css and I am just barley able to replace the codes I need to use.

ChronicFatigue

12:12 am on Aug 30, 2004 (gmt 0)

10+ Year Member



If I understand your post correctly the images are not showing up when referenced from the smilies directory as the images urls in the css file are relative to the images location..

If you edit your CSS template file and make your image urls from root they should display regardless of where they have been called from..

Do a search on 'absolute vs relative urls' if neccessary

Dustbunny

2:35 am on Aug 30, 2004 (gmt 0)

10+ Year Member



Hi, Thank you for your answer,

If I follow correctly you are asking me to make sure I have Relative links to the images. This I do have.

My path is this>
in the Base Dir I have files located in the base dir,
for the images, you have click on a folder named "picts".

Now I made more pages (32) and I have placed them into a new folder under Base Dir/Smiles/files.htm
The files I have under Smiles will not link up with basedir/picts, which leaves me in turn with broken images.

I wonder If I cannot make a new folder under smiles and also have this named "picts", then copy the picts and the contents, back into the smiles folder.

[edited by: tedster at 5:06 am (utc) on Aug. 30, 2004]

mincklerstraat

10:05 am on Aug 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Doing so would be less than ideal. If all your images are in just one directory, then they only have to be loaded up once, and when your visitors go to other pages, these images are already in their browser's cache, so they don't have to wait around for them to load again. So do try the "absolute url" option mentioned above. For css, you can link your css page absolutely by using the full url "http://mysite.com/style/style.css" or by using a leading slash (from the same location, it'd be "/style/style.css", starting from the very first directory.