10 article recommendations on block elements

Source: Internet
Author: User
When you do not include the Z-index property and the Position property, the stacking order of all elements is consistent with the order in which they appear in the HTML document in which they are placed. (except for exceptions that use negative margin to overlap an inline element.) When the element floats float, the floating block element is placed between the non-anchored block element and the anchor block element, in other words, the floating element appears above the descendant block element in the normal stream, below the descendant inline element in the normal stream. When an element is added to the position Location property, all elements with the position attribute and their child elements are displayed on other elements that do not have the position attribute. Z-index is only valid on the element that has the position property set, the Z-index attribute on the element without the position attribute does not take effect. The Z-index property produces a stacking context with a set of elements that have a common parent element that collectively moves forward or back to form a stacking context. Each stacking context has a single root element, and when a new stacking context is formed on the element, all child elements in the stacking context are confined to a fixed area in the stacking order. A stacking context structure

1. Parsing the stacking order of elements in CSS

Summary: When you do not include the ZIndex property and the Position property, the stacking order of all elements coincides with the order in which they appear in the HTML document in which they reside. (except for exceptions that use negative margin to overlap an inline element.) When the element floats float, the floating block element is placed between the non-anchored block element and the anchor block element, in other words, the floating element appears above the descendant block element in the normal stream, below the descendant inline element in the normal stream. When an element joins the position position property, all elements with the position attribute and their child elements ...

2. Detailed description of 3 common elements in HTML

Summary: Inline elements are called inline elements, inline elements, inline elements, and inline elements, which are generally based on semantic level (semantic) elements, which can only hold text or other inline elements, and are usually included in the block element. Inline elements have these a anchor points abbr abbreviation the<abbrtitle= "Worldwieldwebconstium" > W3c&, .....

3. Use CSS3 to truncate text and add ellipses

Summary: Limits the number of lines of text displayed in a block element. To achieve this effect, it needs to combine other foreign webkit properties.

4. Explain the conversion method between the block element and the inline element

Summary: About transformations between block-level elements and inline elements we can use CSS to solve this, the attribute differences between block elements and inline elements will not be different after using CSS. For example, we can completely add an inline element to a property such as Display:block, so that it also has a property that starts from the new line each time, that becomes the block element as well as we can add the block element to the display:inline and let it be arranged on one line.

5. Detailed HTML block-level elements

Summary: Before the advent of HTML5, people generally divided the elements into block-level, inline, and inline block elements. This article describes HTML block-level elements in detail

6. Detailed HTML5 Browser compatibility solution

Summary: Most browsers currently support HTML5. The low-version browser supports HTML5 all browsers and automatically handles unrecognized elements as inline elements. Therefore, you can use the following method to teach the browser to process "Unknown" HTML elements. The HTML5 element is defined as a block element HTML5 8 new HTML semantic (semantic) elements are set. All of these elements are block-level elements. In order for the older browsers to display these elements correctly, you can set the display genus of the CSS

7. A simple way to explain the center layout of CSS elements

Introduction: This article mainly introduces the CSS Element center layout simple method, the article introduces the embedded element and the block element as well as the row inside the block three kind of situation, needs the friend can refer to the next

8. HTML block-level label summary (small article)

Summary: block-level elements, simply speaking, are the elements of a single line of their own. Features: ① always start on new lines, ② height, row height and margin and padding are controllable; the ③ width defaults to 100% of its container unless a width is set. ④ it can accommodate inline elements and other block element summary code as follows: <!doctype html>

9. html__ inline elements and block elements

Summary: In the HTML4.0 era, the element type of HTML is in the inline element (inline elements) and block elements (block-level element). First, inline element is a basic element based on semantic level, generally can only accommodate text and other inline elements. The following elements are inline elements: ...

H5 Learning Journey-h5 Use of block tags (9)

Introduction: 1. HTML block elements, where block elements begin with a new line, such as H1,p,ul 2. Inline elements, usually not starting with new lines, such as the a,b,img 3.html div element, a div is also called a block element, which is primarily used as a container for composing HTML elements

"Related question and answer recommendation":

JavaScript-why BFC can solve the margin overlay problem?

What are the characteristics of inline element block elements and inline block elements?

CSS3-What are the key words about CSS core technology?

JavaScript-I want to dynamically let two blocks equal high

CSS-Hello everyone, is the layout tag in H5

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.