Yours | Mine | Web | Tutorials | Resources
Organize Your CSS
If you use a lot of CSS to style your site it sometimes gets a little crazy and takes a lot of time to change it on each page. So, here's a simple code to make it a lot easier and more organized.
1. Open notepad and copy and paste all of your CSS code onto a blank document. Remove the CSS from all of your other pages.
2. Save your document as css.css.
3. Remove the start and end tags (<style type="text/css"> and </stlye>), you don't need them.
4. Copy and paste the code below onto each page that you want the CSS to appear on. Place between the <head> and </head> tags.
5. Upload the css.sss document with all of your other pages.
It's very simple and keeps your coding neat and easier to handle. Now if you ever want to change your layout or fix a color you can just change it once on your css document. You also won't have to scroll through pages and pages of CSS to work on your site anymore :)
|