954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to save CSS-files with XP?

Hello.

Currently I am using XP and I wanted to save a CSS-file, yet I cannot save it correctly which results in the fact that I cannot properly link to it, meaning that every style I try, will not be accomplished. Can anyone help me? I'm grateful for any reply.. :)

Julietta
Newbie Poster
4 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

CSS files use the file extension .css and you may use a notepad to create/edit this file.

Try typing this on a notepad:

body { background-color: red; }


..and save it as mystyle.css

Then on your html file, use the code below to reference/link to your css file:

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css" />
</head>


Of course, both of your html and css must be in the same folder.

Hope this helps. :)

Misheki
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 2
 

Thanks for your fast reply. I did though. Yet it doesn't work, dunno what's wrong. The file as you look at it doesn't give any notification about what kind of file it is, not even the html-file, though that one just works fine. But I can never tell, if it is html. However the point is that I cannot link to my CSS.. :/

Julietta
Newbie Poster
4 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

so post your code so we can look at it.
you might need to also do the following:
change this
to this

Skorpio07
Newbie Poster
22 posts since Jul 2010
Reputation Points: 10
Solved Threads: 1
 

Well, I was able to figure out what was wrong, it was something as to the system, I just had to adjust things, it was not my computer though. Anyways I made it, I could style everything. :) Thank you guys though. :)

Julietta
Newbie Poster
4 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: