Before we actually get into
designing the layout, it is helpful to understand what’s involved in
designing a CSS layout using Dreamweaver CS5.
A webpage is created using HTML code. Dreamweaver allows you to
create the webpage without actually writing HTML code as Dreamweaver
writes the HTML code for you. HTML is made up of various ‘tags’.
It was not too long ago when web pages were designed using tables [Insert > Table], however this is no longer a good practice. Now it is best to design CSS based webpage layouts.
There are 2 parts to a CSS based website layout:
We will also create a CSS and specify the properties for each of the div tags by defining styles of the same names ie. header, menu, content and footer.
The style sheet can reside within the HTML page or external to the HTML page but linked to it. It is advisable to create an external style sheet so that changes can be made to this one file which will reflect on all the linked pages.
It was not too long ago when web pages were designed using tables [Insert > Table], however this is no longer a good practice. Now it is best to design CSS based webpage layouts.
There are 2 parts to a CSS based website layout:
- Div (short for division) tags divides the content into individual sections.
- CSS (short for Cascading Style Sheet) styles the div tags.
- Class
- ID
- The style for a class will begin with a dot ‘.’
- The style for an ID will begin with a hash ‘#’
We will also create a CSS and specify the properties for each of the div tags by defining styles of the same names ie. header, menu, content and footer.
The style sheet can reside within the HTML page or external to the HTML page but linked to it. It is advisable to create an external style sheet so that changes can be made to this one file which will reflect on all the linked pages.
0 comments:
Post a Comment