HTML first line indent, hover effect

Source: Internet
Author: User

First line indent: in the block element such as (<div style= "TEXT-INDENT:2EM;" >) to set the first line indent by two characters, the block-level elements of its child elements, such as <dt>, <li>, <p>, and so on, are automatically indented two characters, but the universal paragraph label <p> defaults to wrapping more lines of space (the default margin is 1em). If you want to reduce the blank line can be set its label under the margin of 0 (<p style= "MARGIN-BOTTOM:0EM;" >) or margin of 0 (<p style= "MARGIN:0EM;" > This setting can be displayed in the DW in real time). Add an inline element with a newline character such as (<br/><span style= "MARGIN-LEFT:2EM;" ></span>) Set the left margin to 2 characters. With <br/>&nbsp;&nbsp;&nbsp;&nbsp;) + 4 full-width entity spaces (typically, an entity space is displayed in Code view, and a blank space is displayed in Design view when the Code view is empty (no entity spaces are visible). But the effect is the same. ) to solve the problem. However, block-level elements such as <table>, <ul>, <ol> are also indented, and the workaround is to set their indentation to 0, as in table <table style= "text-indent:0;" > and so on. With DW edit can be built a code snippet insert, with WLW Edit available text template plug-in template after inserting templates are easy to operate, recommended to use <li> (need list tag), <dt> (do not need list tag), <p> (paragraph) According to the use of different functions, this space is the use of these three labels organic combination. If the parent element does not set indentation, the first line indent is set on each block element, if it is an inline element, enter an entity space, set the margin method, or set it as a block element and indentation.

In the Baidu space CSS template set the first line indentation: Set #m_blog div.cnt p, #m_blog div.cnt DT, #m_blog div.cnt li{text-indent:2em; line-height:1.5em; font-size:14px;} Allows you to press the confirmation key in the online editor to achieve the beginning of line indentation, font size, line height settings, paste with the label you set the document (such as WLW) can be displayed according to your settings.

How to build a hover open empty link to display the title content: Key A connection to delete the Address property href, set the title and style, such as My Space sidebar: <a title= "first line indent, how to build a hover open empty link to display the title" Style= " Text-decoration:none; " > Related Topics (hover open) </a>.

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.