|
|
 |
Spacing Demonstration
The instructor will demonstrate creating styles to control margins and padding for the page elements. These styles have already been declared in your practice sites. They include:
td#content {
padding-bottom: 18px;
padding-left: 18px;
padding-right: 18px;
padding-top: 20px;
}
td#sidenav {
padding-right: 15px;
padding-top: 20px;
width: 180px;
}
table#sideborders {
border-left: 1px solid #999999;
border-right: 1px solid #999999;
border-top: none;
margin: 0px;
padding: 0px;
}
- Open the demonstration template file
- Delete the 5 spacer graphics
- Simplify the layout table by:
- cutting the <td> containing the content editable region
- deleting the leftover <table> where the content used to be
- selecting the <td> in the overall table where the content will go
- paste in the <td> containing the content editable region
- follow steps a. through d. to simplify the sidenav editable region
- Attach the style sheet file
/common/layout.css
- Apply
id="content" to the <td> tag containing the content editable region
- Apply
id="sidenav" to the <td> tag containing the sidenav editable region
- Apply
id="sideborders" to the <table> tag containing both the content and sidenav regions
- Delete the extra spaces before the text in the pagesig area
- Apply
id="pagesig" to the <td> tag containing the pagesig region
|