Download
    Interview Question     &Answer
Main Menu
CSS Text@ Shwetank education.com
Definition -  That CSS text formatting and adding style is a key issue for any web developer.

• CSS Text Decoration
• Vertical Alignment IN CSS
• CSS Text Transformation
• Text Alignment of CSS
• CSS Text Indentation
• Line Height using CSS
CSS Text Decoration
CSS text-decoration property makes it is possible to add different decorations or effects to text in your web page
Example
p { text-decoration: underline}
h4 { text-decoration: overline}
h2 { text-decoration: line-through}
Vertical Alignment IN CSS
CSS property of text-align corresponds to the attribute align used in old versions of HTML. Text can either be aligned to the left, to the right or centered.
Example
IMG.middle { vertical-align: middle }
IMG { vertical-align: 50% }
.exponent { vertical-align: super }
CSS Text Transformation
CSS text property of text-transform controls the capitalization of a text in a webpage. You can choose to capitalize, use uppercase or lowercase regardless of how the original text is looks in the HTML code.
Example
H1 { text-transform: uppercase }
H2 { text-transform: capitalize }
Text Alignment of CSS
CSS text-align property corresponds to the attribute align used in old versions of HTML. Text can either be aligned to the right, to the left or centered. In addition to this in Cascading Style Sheet, the value of justify will stretch each line so that both the right and left margins are straight.
Example
P.date { text-align: right }
P.Main { text-align: center }
P { text-align: justify }
CSS Text Indentation
CSS text-indent property allows us to add an elegant touch to text paragraphs by applying an indent to the first line of the paragraph. In the example below a 15px is applied to all text paragraphs marked with
Example
P { text-indent: 15px }
Line Height using CSS
CSS line-height property will accept a value to control the spacing between baselines of text in a webpage. When the value is a number, the line height is calculated by multiplying the element's font size by the numbers. Percentage values are relative to the element's font size
Example
P { line-height: 200% }


IT  Projects Links
M-Tech Thesis
Php Project
Java Project
Asp.Net Project
Android Project
Vb .Net Project
Html Project

------------------------------- Electronics  Project
Networking
Embedded system
Telecom
Robotics
CCNA
------------------------------- Latest IT  News


Copyright 2010-2015    shwetankeducation.com
Privacy & Terms