Search:    Home -> About Us -> Security & Privacy -> ToS -> Add Url -> Add Your Article   
pastedinfo.com
Add Url
 

Garden & Home

Property & Agents

Lifestyle & Fashion

Eating & Drinking

Online & Board Games

Health & Therapy

Automobiles

Self Help

Politics & Government

Online Shopping

Employment & Careers

Technology & Science

Internet & Computers

Children & Teens

Healthcare & Medicine

Outdoor & Sports

Culture & Art

Academics & Education

Issues & News

Tour & Travel

Banking & Finance

Business & Commerce

Recreation

Society & Issues

 

Home » Internet & Computers » Web Development Services
 

How To Style Your Text With CSS

 
Styling text with CSS is really simple. We can define colors, underline it, make it bold, define the font etc etc.

We will start with some basics.

First we define the html where we will be working with.
This is the text

1. Colorize your text

We can select the P tag and add some styles to it.
p {
color:red;
}

Now our text will turn red. You can define any color code your want or choose one of the 16 standard color names. The color names are: aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white and yellow.

2. Define the size of your text
p {
font-size:12px;
}

You can define any font-size you want, 145 pixels is not a problem. That is, technically speaking.

3. Make the text bold or Italic
You can use the font-style property to create these effects.

Bold:
p {
font-weight:bold;
}

Italic
p {
font-style:italic;
}

4. Overline, Underline, strike-through and none

The text-decoration property is useful to create the underline and the other effects we need.
p {
text-decoration:underline;
text-decoration:line-through;
text-decoration:overline;
text-decoration:none;
}

On default, the text doesn't have any lines at all. Except for the link. You can remove the underline by using the text-decoration:none; setting.

You see, it's quite easy to style your text using CSS. And you can do it all in a separate stylesheet!

Author: Hilco van der Meer
 
Author Bio:

Hilco van der Meer is known as the author of the Cascading Style Sheets Course How To Master CSS. He's a professional Web Designer for over 5 years now. His course aims at easy to follow and step-by-step examples. More info can be found at www.HowToMasterCss.com

This article can be searched using: web site development, web design & development, website development tampa
 
 
 

Related Articles

 
Traffic Driving Internet Marketing Promotion Ideas
 
Promoting A Website For Free
 
Finding Your Online Business Niche
 
Web Site Promotion: Timeless Candles' Secret Weapon
 
Increase Online Website Traffic ? Free Resources Show You How
 
VPN Client
 
Google Slavery...Old Habits Die Hard
 
Get Listed at DMOZ
 
What Does It Mean? Could Not Determine The Server??s Fully Qualified Domain Name
 
StrongBit and 9Rays Partner In The War Against Software Piracy
 
 
 
Home -> Security & Privacy -> ToS  
Copyright © 2008 www.pastedinfo.com