dreamweaver| Advanced | skills | Web page
This article introduces two kinds of center pages, one is the center of the page, one is the page up and down center.
Pages centered on the page
Implementation method: Set the body label centered.
1. Open a Web page or create a new Web page, select the "Body" tab in the lower-left corner of the document, on the label selector.
2. In the property panel, click Align Center. Now the center of the page is done, to fill the contents on it.
Switch to code view to see the generated code, which originally generated "<div align=" center "></div>".
You can choose between two forms of centered code. Using the div tag is one of them, and the other is using the "Center" tab. Open the Edit/Parameter selection menu, and in the dialog box below, select the label you want to use as the center.
Center PAGE UP or down
Implementation method: In the page, insert a row, width of 100% table, and set table does not display, so that the table cell, horizontal and vertical center, in the cell page content, can be one or several tables, such as inserting a 768x430 pixel table, You can also put content directly, the page looks like the top and bottom are centered.
1. Open the document, insert a row-by-column table with wide teeth of 100%, cell padding, spacing, and a border of 0.
2. In the Properties panel, continue to set the table height to 100%, set the following figure.
3. Select the TD tab on the label selector in the lower-left corner of the document. On the Properties panel, set the TD tab (cell) horizontally to center, and set vertically to middle.
4. At this time, the top and bottom center of the page has been set up. Next, in the cell, insert the table or the content.
Finally say something of your own words: We recommend that you actually make the Web page using the first method. Because now all advocate standard Build station AH! And then if a large table all the content of the page will affect the speed of browsing!