Question: Chapter 6 How to use css for page layout 2 0 5 Exercise 6 - 1 Enhance the Town Hall home page In this exercise,
Chapter How to use css for page layout
Exercise Enhance the Town Hall home page
In this exercise, you'll enhance the formatting of the Town Hall home page that you formatted in exercise You'll also format the Speaker of the Month part of the page that has been added to the HTML When you're through, the page should look like this:
C San Joaquin Valley Town Hall, Fresno, CA
Open the HTML and CSS files
Use your text editor to open HTML and CSS files:
Vhtmcss exercises townhallcindex.html
In the HTML file, change the h element in the aside to an h element, and change the content of this element as shown above. Other than these changes, the only changes that are necessary are to the CSS
Section The essential concepts and skills
Enhance the cSS file so it provides the formatting shown above
In the CSS file, enhance the style rule for the body so the width is pixels. Next, set the width of the section to pixels and float it to the right, and set the width of the aside to pixels and float it to the right. Then, use the clear property in the footer to clear the floating. Last, delete the style rule for the h heading. Now, test this. The columns should be starting to take shape.
To make this look better, delete the left and right padding for the main element, set the left and bottom padding for the aside to pixels, change the right and left padding for the section to pixels, and set the bottom padding for the section to pixels. You can also delete the clear property for the main element. Now, test again.
To make the CSS easier to read, change the selectors for the main elements so they refer to the section or aside element as appropriate and reorganize these style rules. Be sure to include a style rule for the h headings in both the section and aside. Then, test again to be sure you have this right.
Add the CSS for the Speaker of the Month
Add a style rule for the h element that sets the font size to sets the top padding to ems and the bottom padding to ems, and sets the margins to
Float the image in the article to the right, and set its top, bottom, and left margins so there's adequate space around it Then, add a pixel, black border to the image so the white in the image doesn't fade into the background.
Make any final adjustments, use the Developer Tools if necessary, and test the page.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
