What is the method of setting indentation and typesetting of content by css div object
This article mainly explains "css div object setting content indentation typesetting method is what", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "css div object setting content indentation typesetting method is what" it!
Text indentation is realized by adopting text-indent famous words. After setting, the first pen and ink in div is about to indent and flash.
Div setting equipment indentation has two door paths, one kind of div tag uses the style attribute to directly configure the css code pattern, and the other adopts the use of class or id to introduce internal settings for div equipment to create a new selector style.
First, set content indentation directly within the tag, use indentation test form CSS5 instance test mode CSS5 against div indentation instance
Apply the style attribute to the above direct tag to complete indentation.
Second, class or id uses external css for indentation
Broken css div instance html code:
Div inner mode indent instance CSS5.exp {text-indent:30px} external CSS completes first line form indent test CSS5 instance test CSS5 about div indent instance
Successful implementation of div mode indentation instance screenshot
At this point, I believe that everyone on the "css div object setting content indentation typesetting method is what" have a deeper understanding, might as well to actual operation it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!