H I O X INDIA
FREE CSS Tutorial
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

CSS Topics
Introduction
Types
Background Properties
Text Properties
Font Properties
BOX Properties
Border Properties
Margin Properties
Padding Properties
Special Topics
Ask Your Doubts
Feedback





CSS Text Decoration


Topic

How to create a text with over line or under lining in html?
I want to have a striked text / word ? How to create a blinking under lined text in html?



Explanation


Property: Text Decoration

Usage:
text-decoration: underline;
text-decoration: overline;
text-decoration: linethrough;
text-decoration: blink;

Definition:
Using this attribute we can decorate out text. The words can be made to blink, striked words, etc...
It takes the following values.
a)underline : You can under line the text or word by using this value.
b)overline : You can over line the text or word by using this value
c)linethrough : You can strike through the text or word by using this value
d)blink : You can make the text to blink by using this value.

Example 1:
<font style="text-decoration: underline;"> Testing Text Decoration </font>

Result:
Testing Text Decoration


Example 2:
<div style="text-decoration: overline;"> Testing Text Decoration </div>

Result:

Testing Text Decoration

Example 3:
<h5 style="text-decoration: linethrough;"> Testing Text Decoration </h5>

Result:
Testing Text Decoration

Example 4: [older version of browsers might not support this value]
<font style="text-decoration: blink;"> Testing Text Decoration</font>

Result:
Testing Text Decoration


To get a text which is both under lined, over lined and also blinks, we have to use the values as said in the below example. This is how we can get blinking underlined text.
Example 4:
<font style="text-decoration: underline overline blink;"> Testing Text Decoration</font>

Result:
Testing Text Decoration







A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com