Jump to content

External css


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...