Jump to content

External css


Goodthing07

Recommended Posts

Hello,Up until now Ive always just made my stylesheet and then copied it into each folder with the html page. But now to make it that bit easier I'm wondering how If I put my styleshhet into another folder called CSS what do I have to change in(<link rel="stylesheet" type="text/css" href="../CSS/stylesheet.css" />) to make it so I can import it onto my html file my HomePage folder? Any help would be appreciated, thanks.

Edited by Goodthing07
Link to comment
Share on other sites

If the html file(s) and the CSS directory(folder) is in the same directory(for example, 'ht_docs' or something), then this try this: <link rel="stylesheet" type="text/css" href="CSS/stylesheet.css" />

Link to comment
Share on other sites

Note if you reference any background images for instance, you will have to adjust the url address to the images, as it will change, you may find images currently work as the images are stored in the cache/ history folder but as soon as these are clear it may fail to show.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...