User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,799 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,916 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 685 | Replies: 9
Reply
Join Date: Jul 2008
Posts: 2
Reputation: KylieByrne is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
KylieByrne KylieByrne is offline Offline
Newbie Poster

Save notepad as CSS file

  #1  
Jul 23rd, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 4
Reputation: thumbslinger is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
thumbslinger thumbslinger is offline Offline
Newbie Poster

Re: Save notepad as CSS file

  #2  
Jul 23rd, 2008
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.
Reply With Quote  
Join Date: Jul 2008
Posts: 2
Reputation: KylieByrne is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
KylieByrne KylieByrne is offline Offline
Newbie Poster

Re: Save notepad as CSS file

  #3  
Jul 23rd, 2008
Thanks, I'll give it a shot.
Reply With Quote  
Join Date: Nov 2007
Location: Arkansas
Posts: 368
Reputation: buddylee17 will become famous soon enough buddylee17 will become famous soon enough 
Rep Power: 2
Solved Threads: 70
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz

Re: Save notepad as CSS file

  #4  
Jul 24th, 2008
Surround the filename in double quotes:
Click Save As
Filename: "default.css"
Lost time is never found again.
- Benjamin Franklin
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,239
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Save notepad as CSS file

  #5  
Jul 24th, 2008
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...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: Jun 2008
Posts: 67
Reputation: Troy III is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 10
Troy III's Avatar
Troy III Troy III is offline Offline
Junior Poster in Training

Re: Save notepad as CSS file

  #6  
Jul 24th, 2008
Originally Posted by peter_budo View Post
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
Reply With Quote  
Join Date: Jun 2008
Posts: 53
Reputation: rexibit is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
rexibit rexibit is offline Offline
Junior Poster in Training

Re: Save notepad as CSS file

  #7  
Jul 25th, 2008
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.
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,239
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Save notepad as CSS file

  #8  
Jul 25th, 2008
LOL, somebody is trying for clever. How about creating file through command line? Faster then extra click in dialogue menus. I can do that...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 258
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 27
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: Save notepad as CSS file

  #9  
Jul 28th, 2008
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" /> 
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,239
Reputation: peter_budo is a jewel in the rough peter_budo is a jewel in the rough peter_budo is a jewel in the rough 
Rep Power: 10
Solved Threads: 270
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Save notepad as CSS file

  #10  
Jul 28th, 2008
Originally Posted by sreein1986 View Post
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!
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 10:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC