Introducing An External Stylesheet
Posted: Wed Apr 25, 2007 7:00 pm
When coding my own site, for organizational purposes, I prefer to use an external stylesheet.
External Stylesheet: A cascading style sheets (CSS) style that is written in an external **** and can be referenced by multiple ****.
(source: http://webdesign.about.com/od/css/g/bldefextstyle.htm}
So, basically you take your stylesheet syntax, such as
and stick it in a seperate **** that you would name something like "mystyle.css". It MUST have a .css suffix or else it will not read properly therefore, be useless.
Once you've got your stylesheet created, saved and uploaded to the server of your choice, you simply insert a code inter the <head> </head> section of your HTML page that would look like:
This will basically prevent you from having to add all of that wild looking stylesheet crap to you HTML page. For me, it makes it easier to sort through when I need to edit. Also keeps everything looking nice and neat.
External Stylesheet: A cascading style sheets (CSS) style that is written in an external **** and can be referenced by multiple ****.
(source: http://webdesign.about.com/od/css/g/bldefextstyle.htm}
So, basically you take your stylesheet syntax, such as
Code: Select all
body {background:#404040 url('background-url.com') fixed;)
Once you've got your stylesheet created, saved and uploaded to the server of your choice, you simply insert a code inter the <head> </head> section of your HTML page that would look like:
Code: Select all
<link rel="stylesheet" type="text/css" href="mystyle.css">