We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Save notepad as CSS file

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

10
Contributors
13
Replies
1 Month
Discussion Span
4 Years Ago
Last Updated
22
Views
Question
Answered
KylieByrne
Newbie Poster
2 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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.

thumbslinger
Newbie Poster
4 posts since Feb 2008
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Thanks, I'll give it a shot.

KylieByrne
Newbie Poster
2 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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

buddylee17
Practically a Master Poster
699 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
Skill Endorsements: 1

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...

peter_budo
Code tags enforcer
Moderator
15,812 posts since Dec 2004
Reputation Points: 2,871
Solved Threads: 944
Skill Endorsements: 52

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

Troy III
Master Poster
779 posts since Jun 2008
Reputation Points: 140
Solved Threads: 100
Skill Endorsements: 5

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.

rexibit
Junior Poster in Training
55 posts since Jun 2008
Reputation Points: 15
Solved Threads: 4
Skill Endorsements: 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...

peter_budo
Code tags enforcer
Moderator
15,812 posts since Dec 2004
Reputation Points: 2,871
Solved Threads: 944
Skill Endorsements: 52

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" />
sreein1986
Posting Whiz
306 posts since May 2008
Reputation Points: 12
Solved Threads: 34
Skill Endorsements: 1

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!

peter_budo
Code tags enforcer
Moderator
15,812 posts since Dec 2004
Reputation Points: 2,871
Solved Threads: 944
Skill Endorsements: 52

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.

MelechM
Junior Poster in Training
55 posts since Sep 2008
Reputation Points: 11
Solved Threads: 6
Skill Endorsements: 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.

MidiMagic
Nearly a Senior Poster
3,363 posts since Jan 2007
Reputation Points: 730
Solved Threads: 184
Skill Endorsements: 1

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..

luvuyomaq
Newbie Poster
15 posts since Apr 2007
Reputation Points: 11
Solved Threads: 1
Skill Endorsements: 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.

MelechM
Junior Poster in Training
55 posts since Sep 2008
Reputation Points: 11
Solved Threads: 6
Skill Endorsements: 0
Question Answered as of 4 Years Ago by peter_budo, MelechM, MidiMagic and 6 others

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0999 seconds using 2.8MB