Tutorial: External style sheets
1. Introduction & Tools
I've found naming things after what they are (or do) is a really good practice, thus I call the DIVS "containers". Containers here will mean any kind of "holder" that seperates things within a web page. That must sound extremely simple but this - I think - this is where a lot of people get confused with css and stylesheets. Containers (DIVS) ARE very simple and have a lot of different, practical uses on a web page. They can show important text in a different background color. They can define a different font for an area. Containers can also become columns and rows. It's all about how they are defined in the external style sheet and how they are put into the html that makes them do what they do. It's also possible to use many containers (DIVS) within one web page and put DIVS inside of other DIVS.
They are a DIV and written in the external style sheet like so:
whatever properties you want to have
Notice that they begin with a # in the external style sheet. That's important.
The html with this would look like the following. Notice that they have to be closed with a </div> tag.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<title>one column example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="column-example1.css" media="screen">
Tutorial: External Style Sheets
ALL IMAGES AND CONTENT COPYRIGHT 2011, ANNIEMATION
ANNIEMATION IS A REGISTERED TRADEMARK