Html+css Small Knowledge points

Source: Internet
Author: User

September 9, 2014 22:52:37p.uppercase {text-transform:uppercase;}
p.lowercase {text-transform:lowercase;}
p.capitalize {text-transform:capitalize;}//Turn uppercase, turn lowercase, turn the first letter uppercase P {text-indent:2em;}//First line indent two characters H1 {letter-spacing:2px;}//  Set the distance between characters P.small {line-height:70%;} Set line spacingdiv.ex1 {Direction:rtl;}//Set text directionp{word-spacing:30px;} Spaces between words h1 {text-shadow:2px 2px #FF0000;} Set the text shadow P{white-space:nowrap;}//Blank handling
value Description
Normal Default. The blank will be ignored by the browser.
Pre The blank will be reserved by the browser. It behaves like a <pre> tag in HTML.
NoWrap The text does not wrap, and the text continues on the same line until the <br> tag is encountered.
Pre-wrap Preserves the sequence of whitespace characters, but wraps them normally.
Pre-line Merges a sequence of whitespace characters, but preserves newline characters.
Inherit Specifies that the value of the White-space property should be inherited from the parent element.
Border-collapse:collapse; The table border is folded into a single border caption {caption-side:bottom;}//table header position, the title needs to be written as "<caption>table 1.1 customers</caption>", border:1px Solid red;//Border as table child element
Outline:green dotted thick;//contour margin border padding inner content Visibility:hidden lets you hide an element, but it still needs the same space as before. The element will be hidden, but will still affect the layout. Display: There is no hidden element and it does not occupy any space.

position:fixed; The position of the element is fixed relative to the browser window. It does not move even if the window is scrolled:

Position:absolute; The position of an absolutely positioned element is relative to the nearest positioned parent element, if the element has no positioned parent element, then its position is relative to

Html+css Small Knowledge points

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.