Share this Page URL

Chapter 10. Table Talk: Adding Tables to... > Using a Table to Set Up a Page with ... - Pg. 117

Table Talk: Adding Tables to Your Page · The second column is where you put all your regular web page text and graphics. Here's the basic layout for the web page (see margin1.htm on this book's CD): <HTML> <HEAD> <TITLE>A Page with a Left-Hand Margin</TITLE> </HEAD> <BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0"> <TABLE HEIGHT="100%"> <TR> <TD BACKGROUND="grn2.gif" WIDTH="100">&nbsp;</TD> <TD VALIGN="TOP"> The rest of your Web page stuff goes here. </TD> </TR> </TABLE> </BODY> </HTML> 117 Webmaster Wisdom Notice how the <BODY> tag includes four new attributes: LEFTMARGIN, TOPMARGIN, MARGINWIDTH, and MARGINHEIGHT. Setting all of these to 0 ensures that you don't end up with extra space above and to the left of the main table. Figure 10.6 shows the page in the browser. As you can see, the left side of the page (that is, the left column of the table) displays an image that serves as the page margin. Figure 10.6. This page features a margin down the side.