Dreamweaver8 easily implement paragraph indentation for text

Source: Internet
Author: User
Tags character set empty implement dreamweaver

When we write English text with Drwamweaver, the paragraph is generally not indented (it does not support half-width spaces), but most of the time we use the Chinese writing format, we must empty two characters at the beginning of each paragraph. However, the browser can only identify a space for the space in the text, no matter how many. How to realize the paragraph indent of text in Drwamweaver, it becomes a big problem in the Web page making. To solve this problem, this paper provides the following solutions.

The function of the body with self dreaweave

1, in the Dreamweaver to perform the following operation 4 times can insert two Chinese characters size space.

2, with the same background color characters to complete the insertion of space, this method of operation is more cumbersome, difficult to modify, and when browsing content is selected, hidden characters are exposed.

Second, in HTML language

Use HTML language to implement Chinese paragraph indentation. It's difficult for beginners who don't understand HTML.

1, Pre format (pre)

The source file written in the pre-format, displayed in the source file according to the layout of the words, empty lines and spaces can be clearly distinguished. If the source file is:

〈pre〉

--Pre-format display ...

〈/pre〉

The page will be displayed in the way you have set up the display, that is, the "pre-format display" will be empty two characters in front of the position.

2. Insert special space characters ""

"" represents a non-display space character. Inserts a number of "" characters, separated by semicolons (;) or spaces, and can also be indented in a Chinese paragraph. However, in Netscape 3.01, only lowercase letters can be written, and in IE, the case may be. (This method is easy to produce garbled, not recommended)

Third, the use of input method of the full angle

If you are using the intelligent ABC Pinyin input, then press shift+ space, then the input method of the character column on the half-moon into a circle, and then hit the space bar, the space came out. In addition, Smart Chen Bridge Wubi full angle can also be directly entered space. This method is relatively simple, the disadvantage is that the English character set, full-width spaces will become garbled.

Iv. Alternative methods

1, insert point diagram or graphic

A point diagram is one or more pixels in a picture that you can't see with the unaided eye. When we insert such a point graph at the beginning of a paragraph, and then adjust the left and right spaces of the point graph with the hspace and Vspace properties to reach the paragraph indent.

2. Insert a table without Borders and content

This is similar to the way you insert graphics, which has no borders or content but empty tables. Use the width and Height properties of the table to adjust the size of the tables to fit the indentation.

Using tables to locate is generally more reliable, and this approach makes the source files of the page larger. Therefore, it is not necessarily the preferred format control.

Finally tell you the most original way: in some text editing software (such as Notepad) copy space, and then paste in the Dreamweaver.

Five, CSS method

Add some attributes to <p> tag can be achieved, <p style= "Text-indent:2em" > on it! This site recommended the use of this method, the Web page teaching network will also be revised to meet the Web standards of the Web site

The introduction of so many, what kind of good? You can decide for yourself.

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.