CSS is a far more complex technology than HTML and using CSS to control the layout of your pages requires experience. Fortunately, Dreamweaver contains a wide variety of CSS layouts which can be used to create both individual pages and also templates which can then be used to generate multiple pages.
To use Dreamweaver's CSS layouts, simply choose New from the File menu. The New Document window shows you all the different types of web page that Dreamweaver is capable of creating. These are arranged in categories and the preset CSS layouts are available both in the Blank Page and Blank Template categories.
If the option "None" is chosen in the Layout column, no CSS file will be created; Dreamweaver will simply create a blank HTML or XHTML page. Clicking on the name of each of the layouts displays a preview on the right. This gives you an idea of what the layout will look like. There are single column, two column and three column layouts available. These layouts use terms that you may find confusing such as elastic, fixed liquid and hybrid. We will come back to these terms in another tutorial. At the moment, we are just concerned with creating an HTML page which is driven by a CSS file.
Having chosen a CSS layout, before clicking on the "Create" button you need to specify the manner in which the CSS code will be linked to the HTML document. Next to the option labelled "Layout CSS" is a drop-down menu containing three options: "Add to Head" will place all of the CSS code inside the HTML document in the head section; as the name suggests, "Add to New File", will create a new external CSS file containing all the necessary code; "Link to Existing File" will put the CSS code in an existing CSS file you designate. The final option is useful if you are adding the page to an existing site that already has a CSS file which you want to continue using.
As a general rule, it is normally preferable to place the CSS in an external file since this offers you greater flexibility in reusing the CSS rules contained in the file. If you don't have an existing CSS file then choose "Create New File" and then click the Create button. Dreamweaver will prompt you to choose a location for the CSS file and will suggest a cryptic name, such as " twoColElsLtHdr.css". Feel free to enter a more memorable name. When you click the Save button, Dreamweaver will create both the HTML and CSS pages. - 16039
To use Dreamweaver's CSS layouts, simply choose New from the File menu. The New Document window shows you all the different types of web page that Dreamweaver is capable of creating. These are arranged in categories and the preset CSS layouts are available both in the Blank Page and Blank Template categories.
If the option "None" is chosen in the Layout column, no CSS file will be created; Dreamweaver will simply create a blank HTML or XHTML page. Clicking on the name of each of the layouts displays a preview on the right. This gives you an idea of what the layout will look like. There are single column, two column and three column layouts available. These layouts use terms that you may find confusing such as elastic, fixed liquid and hybrid. We will come back to these terms in another tutorial. At the moment, we are just concerned with creating an HTML page which is driven by a CSS file.
Having chosen a CSS layout, before clicking on the "Create" button you need to specify the manner in which the CSS code will be linked to the HTML document. Next to the option labelled "Layout CSS" is a drop-down menu containing three options: "Add to Head" will place all of the CSS code inside the HTML document in the head section; as the name suggests, "Add to New File", will create a new external CSS file containing all the necessary code; "Link to Existing File" will put the CSS code in an existing CSS file you designate. The final option is useful if you are adding the page to an existing site that already has a CSS file which you want to continue using.
As a general rule, it is normally preferable to place the CSS in an external file since this offers you greater flexibility in reusing the CSS rules contained in the file. If you don't have an existing CSS file then choose "Create New File" and then click the Create button. Dreamweaver will prompt you to choose a location for the CSS file and will suggest a cryptic name, such as " twoColElsLtHdr.css". Feel free to enter a more memorable name. When you click the Save button, Dreamweaver will create both the HTML and CSS pages. - 16039
About the Author:
The author is a training consultant with Macresource Computer Solutions, a UK IT training company offering Adobe Dreamweaver Classes at their central London training centre.