Practice exercises CHAPTER 4 197
FIGURE 4-22 he web calculator user interfaceT
- Try entering data and clicking the plus and minus buttons.
The calculator should be working. - Switch back to Visual Studio by pressing Alt+Tab. Notice that the title bar says
(Running). - Press Shift+F5 to stop debugging.
Shift+F5 works only when Visual Studio has the focus, not when the running applica-
tion has the focus.
The only real change on the default.html page was to add the link to the style sheet.
The calculator is left justified in the browser window, and too many settings have abso-
lute values. In the next exercise, you clean up the rest of this webpage.
Exercise 2: Clean up the web calculator
In this exercise, you continue with the project from Exercise 1 and modify the default.html file
to aid in formatting the webpage. You add <div> elements so you can center the calculator
in the browser window. You also implement a read-only CSS class that can be used on any
read-only text box.