Question:
Trouble saving notepad .css extension?
Ladida
2008-11-20 19:36:33 UTC
Hi,

Im trying to save a notepad document thingy with the file extension ".css" but all that is coming up on my desktop is a note pad-ish icon with a cog on the front :S

When i save it with the ".htm" extension, an internet explorer icon appears ... why isn't this working when i type "example.css"?

(I have tried changing the "save as type" to "all files" but this still doesn't help...)

I don't know much about computers btw...but umm, im pretty sure im using windows vista...if that helps at all lol

Thanks for your answers!
Three answers:
Matt Flaschen
2008-11-20 19:50:48 UTC
Most likely, you're saving the CSS just fine. If you'd like it to open in IE you can change the file association. See http://articles.techrepublic.com.com/5100-10878_11-6172036.html for how to do this. Note, though, that there's no real purpose to opening a CSS file directly in the browser. It's meant to be loaded automatically from an HTML file using link rel (See http://htmlhelp.com/reference/html40/head/link.html ).



Update:



"I changed ".css" to open in internet explorer as a default program, but now a window keeps popping up saying "do you want to open or save this file?""



Yeah, I didn't realize that would happen (I thought it would display as text), but like I said, there's no reason to open CSS directly in the browser.



"I don't understand how i will be able to view how my css coding is going if i can't keep checking back with how it appears in internet explorer...what can i do?"



You check back by opening a *HTML* file that /includes/ the CSS file (you don't need to open a new instance of IE; just push Ctrl-F5). See the link rel I gave, if you don't know how to include CSS.



"I'm only using Notepad becasue it's what i used last year when doing html...what other program can i use?"



There are lots of choices, including emacs, vim, Notepad2, Front Page, Dreamweaver... It depends how much you want to do, and how much you want the program to (try) to do for you. Keep in mind the program isn't always right...



"If i used my laptop (which doesn't have Vista) would that be better?"



Not necessary.
David NoLA
2008-11-21 03:48:21 UTC
The icon displayed for a file type is based on the application associated with that type of file. The notepad icon is associated with text files. A CSS file (cascading style sheet) is a special type of text file, and you must not have the extension associated with any other application.
?
2008-11-21 04:20:26 UTC
You can force the file

save with quotes

"file.css"



That usually works.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...