Creating Cascading Style Sheets
How does one actually create a cascading style sheet?
A CSS file is nothing more than a special kind fo text file.
- Open Notepad
- Type
body{
margin : 0;
padding : 0;
font: small Verdana, Geneva, Arial, Helvetica, sans-serif;
background-color : #ffffff;
color : #000000;
} - Click File…Save As
- Change “Save as Type” box to “all files”
- Type “test.css” in the “File name” box
- Choose a location to save the file
- Click Save
- You have now created your first CSS file!
The actual name of the file is unimportant. Though most typically call it “style” or “screen” or “print”. The thing that made this simple text file a CSS file is the extension. By giving it an extension of “.css”, html editors, web pages and text editors will recognize this file as a cascading style sheet.
For more examples on CSS files, visit our recommended CSS tutorials page.
About the Author
Paul Flyer loves to research the web and find resources and tools for building, maintaining and promoting websites. Based in Saint Louis, MO, he works in management and spends his free time sharpening his web development and copy writing skills. Feel free to contact Paul with any questions, comments or ideas. He is also available to help you with your own website.
Popular Articles
- Removing Line Breaks/Space Before/After H1 tags
- Free Download Manager for Firefox
- Web Development and Design Tool Recommendations
- .htaccess and WordPress
- Removing Image Borders with CSS
- What does it mean to be pinged
- Graphic Design Tool Resources
- Free Blog Software Recommendation
- How to use cPanel to backup your website










