DW base Dreamweaver using div tags

Source: Internet
Author: User

Core tips:

The

(division) element defines an area within a document that includes text, tables, forms, images, plug-ins, and so on, and even elements within an element.

A, div tag overview

The <div> (division) element defines a region within a document,<div> elements include text, tables, forms, images, plug-ins, and so on, and even within <div> elements can contain <div> elements.

If you want the <div> tab to display a specific effect, or to display HTML content at a certain location, define the CSS style for the <div> tag.

The methods for using <div> labels are:

<div> HTML content </div>

If you use the <div> label alone without any CSS style, the effect is the same as using the <p> tag.

Ii. Insert <div> Label

1. Place the mouse in the position where you want to insert the <div> label, then click on the "Insert" menu, select "Layout Object", and select the "div tag" item in the submenu that pops up.

Or select the layout item in the Insert panel and click the Insert Div tag icon, as shown in the following illustration:

2. After clicking the icon, open the Insert Div Tag dialog box, as shown in the following image:

3. In the Insert Div Tag dialog box, you can do the following:

Insert: Insert <div> label at insertion point at cursor position, after start tag--insert <div> tag after <body> tag; before end tag--insert in front of </body> end tag <div> tags.

Class: Select a class. Please read the CSS style sheet tutorial: class selector.

ID: Select an ID. Please read the CSS style sheet tutorial: ID selector.

New CSS Rule button: Click this button to open the New CSS Rule dialog box. Read the way you use CSS style sheets in Adobe Dreamweaver CS4.

Tip: Use the new CSS rule to add a <div> tag class and ID.

4. After you set up the items in the dialog box, or do not set, click the "OK" button, you can insert the <div> label into the document. As shown in the following illustration:

5. Click the <div> label box in the Design view of the document, select <div> label, as shown in the following figure:

6. You can open the <div> tag Properties panel as shown in the following illustration:

  

DIV ID: Select an ID. Please read the CSS style sheet tutorial: ID selector.

Class: Select a class. Please read the CSS style sheet tutorial: class selector.

CSS Panel button: In a pop-up window you can create a new CSS rule or add an additional style sheet.

Third, in the <div> label input content

Click the left mouse button inside the label's box and position the cursor inside the box to enter the content.

IV. Delete <div> label

In the Settings view, select the <div> tab (two. 5 has a selected method) and press the DELETE key to remove it.

Five, <div> label nesting

Click the left mouse button to position the cursor within the <div> tab to continue inserting the <div> label.

VI. DIV+CSS

Div+css is one of the common terms used in Web site standards to differentiate it from the way tables in HTML pages (table) are positioned. In the XHTML website design standard, mainly uses the Div+css way to realize the webpage content localization, but no longer uses the table localization method.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.