1,105,232 Community Members

Save notepad as CSS file

Member Avatar
KylieByrne
Newbie Poster
2 posts since Jul 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi

I've created an external style sheet for a webaite I'm building but it's not working correctly as the notepad file I created for this insists on saving as a text document. please can someone tell me how I save this as a css file type?

Many thanks!
Kylie

Member Avatar
thumbslinger
Newbie Poster
4 posts since Feb 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

save the document and then just change the extension name in the finder.

Note: this does work in Windows.. just rename the file where ever it resides instead of trying to force Note Pad to save it with the .css extension.

Alternatively, you can download TextWragler for free from barebones which is accurately about 750% better than notepad in Windows or simple text on a Mac.

Member Avatar
KylieByrne
Newbie Poster
2 posts since Jul 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks, I'll give it a shot.

Member Avatar
buddylee17
Practically a Master Poster
668 posts since Nov 2007
Reputation Points: 216 [?]
Q&As Helped to Solve: 137 [?]
Skill Endorsements: 2 [?]
 
0
 

Surround the filename in double quotes:
Click Save As
Filename: "default.css"

Member Avatar
peter_budo
Code tags enforcer
7,933 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

Change "Save as type" from "Text Documents (*.txt)" to "All Files" and in "File Name" type name with css file extention like styles.css. Always work for me...

Member Avatar
Troy III
Practically a Posting Shark
891 posts since Jun 2008
Reputation Points: 174 [?]
Q&As Helped to Solve: 119 [?]
Skill Endorsements: 10 [?]
 
0
 

Change "Save as type" from "Text Documents (*.txt)" to "All Files" and in "File Name" type name with css file extention like styles.css. Always work for me...

The above, is the correct answer.

You can always determine the desired file type with "SaveAs" command; choose File Type: "All Files", and save it as whatever txt-file format you like including .csv; .js; .css; .htm; .html; .php;...; etc, etc...

Regards

Member Avatar
rexibit
Junior Poster in Training
55 posts since Jun 2008
Reputation Points: 5 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

You can also help speed up the process by saving the file with "quotes" around the name. This forces Windows to accept the file type.

Example:

SAVE AS: _________________

SAVE AS: "filename.css"

The output would be a CSS style sheet.

Member Avatar
peter_budo
Code tags enforcer
7,933 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

LOL, somebody is trying for clever. How about creating file through command line? Faster then extra click in dialogue menus. I can do that...

Member Avatar
sreein1986
Posting Whiz
306 posts since May 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 33 [?]
Skill Endorsements: 2 [?]
 
0
 

save your file with the ext. of .css
if you give the css file name style.css

when you call the css style sheet in you html page give the code

<link rel="stylesheet" href="style.css" />
Member Avatar
peter_budo
Code tags enforcer
7,933 posts since Dec 2004
Reputation Points: 2,502 [?]
Q&As Helped to Solve: 1,028 [?]
Skill Endorsements: 66 [?]
Moderator
Featured
 
0
 

save your file with the ext. of .css
if you give the css file name style.css

when you call the css style sheet in you html page give the code

<link rel="stylesheet" href="style.css" />

Man when do you start reading posts as whole, not just section you want!
Question asked was how do I save my external CSS in notepad, not how do I call my CSS in web site document!

Member Avatar
MelechM
Junior Poster in Training
55 posts since Sep 2008
Reputation Points: 1 [?]
Q&As Helped to Solve: 6 [?]
Skill Endorsements: 0 [?]
 
0
 

I just go CTRL + S and save as styleSheetName.css and it saves as a CSS file...styleSheetName.css goes in the file name area. leave save as type alone, just make sure the name has .css after it.

Member Avatar
MidiMagic
Nearly a Senior Poster
3,404 posts since Jan 2007
Reputation Points: 556 [?]
Q&As Helped to Solve: 215 [?]
Skill Endorsements: 2 [?]
 
0
 

All you have to do is specify the .css extension in the filename when you save the file. I don't try to change the file type dropdown. It works for me for both .htm and .css files.

Member Avatar
luvuyomaq
Newbie Poster
15 posts since Apr 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi

I've created an external style sheet for a webaite I'm building but it's not working correctly as the notepad file I created for this insists on saving as a text document. please can someone tell me how I save this as a css file type?

Many thanks!
Kylie

which notepad are you using? notepad++ and notepad2 have no silly problems that i know, try one of these..

Member Avatar
MelechM
Junior Poster in Training
55 posts since Sep 2008
Reputation Points: 1 [?]
Q&As Helped to Solve: 6 [?]
Skill Endorsements: 0 [?]
 
0
 

I shouldn't matter which one he is using, as long as he saves the file as "filename.css" i the file name line in notepad it should save as a css file.

Question Answered as of 5 Years Ago by peter_budo, MelechM, luvuyomaq and 6 others
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article