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