BREAKING NEWS

Blogger Security

Css

Javascript

Friday, May 9, 2014

CSS Styling Text

CSS Text

Text Color

Color property is used to set the text color. 

With CSS, the color most often determined by 

  1. HEX value - like "# ff0000" 
  2. an RGB value - like "rgb (255,0,0)" 
  3. color names - like "red":
The default color for the page is defined in the body selector

example :
body {color:blue;}
h1 {color:#00ff00;}
h2 {color:rgb(255,0,0);}

Text Alignment

Text-align property is used to set the horizontal alignment of a text.
Text can be centered, or aligned to the left or right, or dibenarkan.Ketika text-align set to "justify", every line drawn so that each barismemiliki same width, and the left and right margins straight ( as in magazines and newspapers ).

example : 
h1 {text-align: center;}
p.date {text-align: right;}
p.main {text-align: justify;}

Text Decoration

Text-decoration property is used to set or remove decorations from text. 

Text-decoration property is mostly used to remove underlines from linkuntuk design goals :

example: 
a {text-decoration: none;} 
It can be used to decorate ininjuga text :

example : 
h1 {text-decoration: overline;}
h2 {text-decoration: line-through;}
h3 {text-decoration: underline;}
h4 {text-decoration: blink;}

Text Transformation

The property is used to specify the text transform uppercase and lowercase letters in a text. 

It can be used to turn everything into uppercase or lowercase, or capitalize the first letter of each word. 

example :
p.uppercase {text-transform: uppercase;}
p.lowercase {text-transform: lowercase;}
p.capitalize {text-transform: memanfaatkan;}

Text Identation

Indentation text property is used to determine the indentation of the first line of text. 
example :
p {text-indent: 50px;}

Post a Comment

 
Copyright © 2013 Tips & Trik Blog
Powered byBlogger