Web Site Case Study: Adding a Form^395
Hands-On Practice Case
- Configure the CSS.Modify the external style sheet, painter.css. The form is styled
with CSS. Review Section 9.4. See Figures 9.30 and 9.32. Open painter.css in
Notepad. Add the style rules as follows:
● Notice how the text labels for the form controls are on the left side of the con-
tent area but are right-aligned. Create a class called labelColthat will float to
the left, has a width of 100 pixels, aligns text to the right, and has 10 pixels of
padding on the right.
● Configure space around the rows of form controls. Create a class named
myRowwith bottom padding set to 20 pixels.
● Configure extra space surrounding the submit button by creating a class called
mySubmitwith a left margin set to 110 pixels and all other margins set to 10
pixels.
Save the painter.css file. - The Free Estimate Page.Use the Testimonials page as the starting point for the
Free Estimate page. Launch Notepad and open the testimonials.html file in the
paintercss folder that you previously created. Save the file as estimates.html.
Modify your file to look similar to the Free Estimate page, shown in Figure 9.32,
as follows:
● Change the page title to an appropriate phrase.
● Delete the Testimonials page content from the rightcolumn div(but leave the
phone number and page footer in place).
● The Estimate page will contain anelement and a form in the
rightcolumn div.
● Add aelement that contains the following text: Request a Free Estimate.
● Prepare to code the XHTML for the form area. Begin with a