Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Welcome to the TechnoWorldInc! Community!
Recent Updates
[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[May 13, 2025, 02:04:25 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[April 12, 2025, 01:54:20 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[March 12, 2025, 03:05:30 PM]

[January 03, 2025, 03:29:12 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Techno Articles » Webmaster » Web Development
 How To Style Your Text With CSS
Pages: [1]   Go Down
  Print  
Author Topic: How To Style Your Text With CSS  (Read 1159 times)
Stephen Taylor
TWI Hero
**********



Karma: 3
Offline Offline

Posts: 15522

unrealworld007
View Profile
How To Style Your Text With CSS
« Posted: July 28, 2007, 11:53:06 AM »


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 verline;
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!
Hilco van der Meer is known as the author of the How To Master CSS Course and is a web developer for over 5 years now. His blog can be found at http://www.DutchDesign.org. The course contains a Real-Time CSS Editor to practice in real-time with the CSS codes, a complete step-by-step guide and the informative Training Videos. For more information you can visit: http://www.HowToMasterCSS.com

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.059 seconds with 25 queries.