Set body font: 76% arial,sans-serif
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">
body {
font: 76% arial,sans-serif;
}
</style>
</head>
<body>
<div id="container">
<div id="header">
<h1>My Amazing Web Site </h1>
</div>
<div id="wrapper">
<div id="content">
<h2>Contact Form</h2>
<form id="form1" name="form1" method="post" action="/">
<label for="fmtitle" accesskey="i">T<span class="akey">i</span>tle</label>
<select name="fmtitle" id="fmtitle">
<option value="ms">Ms.</option>
<option value="mrs">Mrs.</option>
<option value="miss">Miss</option>
<option value="mr">Mr.</option>
</select>
<label for="fmname" accesskey="n"><span class="akey">N</span>ame</label>
<input type="text" name="fmname" id="fmname" />
<label for="fmemail" accesskey="e"><span class="akey">E</span>mail</label>
<input type="text" name="fmemail" id="fmemail" />
<label for="fmstate" accesskey="a">St<span class="akey">a</span>te/Province</label>
<input type="text" name="fmstate" id="fmstate" />
<label for="fmstate" accesskey="y">Countr<span class="akey">y</span></label>
<input type="text" name="fmcountry" id="fmcountry" />
<label for="fmmsg"><span class="akey">M</span>essage</label>
<textarea name="fmmsg" accesskey="m" id="fmmsg" rows="5" cols="14"></textarea>
<input type="submit" name="submit" value="send" class="submit" />
</form>
</div>
</div>
<div id="extra">
<h2>quid pro quo</h2>
</div>
<div id="footer">
<p>ask.</p>
</div>
</div>
</body>
</html>
Related examples in the same category
1. | 'body' defines where to display all text, graphics, and other web page content | | |
2. | Single paragraph in body | | |
3. | Set font size for body | | |
4. | Set margin for body to '10% 10% 20% 10%' | | |
5. | Set font family for body | | |
6. | Set body background image and no repeat | | |
7. | Set repeat to repeat-x for | | |
8. | Set background image to no-repeat, and background-position to 75px 150px | | |
9. | Set body margin to 10% | | |
10. | Body margin | | |
11. | body background-repeat: no-repeat | | |
12. | body font: 14px sans-serif; | | |
13. | body color: darkslateblue; | | |
14. | body border: 5px dashed darkslateblue; | | |
15. | body margin: 10px; | | |
16. | body padding: 10px; | | |
17. | body text-align: center; | | |
18. | body margin: 0; | | |
19. | body padding: 0; | | |
20. | body font: 73% arial, verdana, tahoma, "Trebuchet MS", sans-serif; | | |
21. | body line-height: 1.7em; | | |
22. | body color: #333; | | |
23. | body background: #fff; | | |
24. | Body text-align: left; | | |
25. | Body background: #858563 url(img/bgd.png) repeat-y top center; | | |
26. | body font: 75% "Trebuchet MS", verdana, arial, tahoma, sans-serif; | | |
27. | body line-height: 1.8em; | | |
28. | body color: #666; | | |
29. | body background: #E16027 url(img/bg.jpg) repeat-y top center; | | |
30. | Background image for body | | |
31. | body margin: 0; padding: 1.5em; border: 50px #666 ridge; | | |
32. | body margin-left: 15%; margin-right: 15%; | | |
33. | Set up the body | | |
34. | body white-space: pre; | | |
35. | width and height percentage for html and body no margin | | |
36. | ?Body margin: 0 auto; | | |
37. | Body background-color: #3E3E2D; | | |
38. | Body background-image: url('image-demo-2011/Page-BgGlare.png'); | | |
39. | Body background-repeat: repeat; | | |
40. | Body background-attachment: scroll; | | |
41. | Body background-position: top left; | | |
42. | Body center | | |
43. | Body font-family: Arial, Helvetica, sans-serif; | | |
44. | Body font-size: 13px; | | |
45. | Narrow body | | |
46. | body font: 1em sans-serif; | | |
47. | background-attachment positions the background image relative to the body and forces the background image to remain fixed in place when the document is scrolled. | | |
48. | body background properties | | |
49. | 'link' sets the color of all links in an HTML document | | |
50. | 'vlink' sets the link color that have already been visited | | |
51. | 'bgproperties' sets the scroll properties of the background image | | |
52. | 'bottommargin' sets the height in pixels of the page bottom margin | | |
53. | 'leftmargin' sets the left indented distance in pixels | | |
54. | 'rightmargin' sets the right margin in pixels | | |
55. | 'topmargin' sets top margin in pixels | | |