CSS Basic Style Summary

Source: Internet
Author: User
Tags word wrap

1: Background (background)

<!DOCTYPE HTML><HTML><HeadLang= "en">    <MetaCharSet= "UTF-8">    <title></title>    <Linkhref= "Mycss.css"type= "Text/css"rel= "stylesheet"></Head><Body><Div>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P>    <P>Background test</P></Div></Body>
HTML code
Body {    background-image: url ("http://image.tianjimedia.com/uploadImages/2012/236/8N64JM0J1I72.jpg") ;     background-repeat: no-repeat;     background-attachment: fixed;     background-size: 100px;}
CSS Code

2: Texts (text)

<PID= "P">hahaha haha oh oh</P><PID= "P1">Lllllppppp Li Peng IL</P><PID= "P2">Lllllppppp Li Peng IL</P><PID= "P3">Lllllppppp Li Peng IL</P>
HTML code
#p{direction:Ltr;/*(on screen) left to right*/Line-height:50px;/*Paragraph line height*/letter-spacing:20px;text-indent:5px;}#p1{Text-transform:Capitalize}/*the first letter of each word becomes uppercase*/#p2{Text-transform:lowercase}/*each word becomes lowercase*/#p3{Text-transform:Uppercase}/*each word becomes uppercase*/
CSS Code

Shadow Effect of text:

text-shadow:10px 10px 1px red;

Explanation: The following four resolution is: in turn, relative to the original text in the upper left corner of the X-y transparency and text color;

Text wrapping:

. p{

width:100px

Text-wrap:normal

}

P Label Inner width is 100px word wrap and if it's English it won't truncate the words.

CSS Basic Style Summary

Related Article

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.