How dreamweaver 8 sets the page height and width color through code
This article mainly introduces dreamweaver 8 how to set the page height and width color through the code, the article is very detailed, has a certain reference value, interested friends must read it!
Dreamweaver is a web design software that can achieve desired page design by setting buttons and writing very little code. Here's how to add a div and set the width, height, and background color.
Open Dreamweaver 8 and create a new HTML page. As shown in the figure:
2, the next page insert div tag, select the toolbar "insert DIV tag" button, in the open dialog box ID item to name this div, we give it a name called layout(can be written according to their own needs). As shown in the figure:
3. After clicking "Insert," as shown in the figure, give div a name, as shown in the figure:
4. After clicking "OK", the code will be added, as follows:
5. Add style: click the CSS style icon on the right
6. Check "For this document only", as shown in the figure:
7. Set width, height and background, as shown in the figure:
8。Click Apply OK to set background color:
9. Check the desired color, click Apply, and confirm. Overall effect:
The above is "dreamweaver 8 how to set page height and width color through code" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!