Style Sheets
  Home arrow Style Sheets arrow Page 5 - CSS: Text, Fonts, and Tables
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Download TestComplete 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
STYLE SHEETS

CSS: Text, Fonts, and Tables
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2008-03-17

    Table of Contents:
  • CSS: Text, Fonts, and Tables
  • Word Wrapping
  • Adjusting Your Font Size
  • Fonting with Style
  • How to Set the Boldness of a Font
  • Tables in CSS

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Virtual Tradeshows by Ziff Davis Enterprise - A Unique Opportunity to Connect with IT Experts, Access Information, and Gain Insight on today's Technology

    CSS: Text, Fonts, and Tables - How to Set the Boldness of a Font
    (Page 5 of 6 )

    You can set the amount of boldness of a font using font-weight. Here is how:


    <html>

    <head>

    <style type="text/css">

    p.normal {font-weight: normal}

    p.thick {font-weight: bold}

    p.thicker {font-weight: 900}

    </style>

    </head>

    <body>

    <p class="normal">I'm pretty open-minded</p>

    <p class="thick">I'm thick headed.</p>

    <p class="thicker">I'm thick headed...er.</p>

    </body>

    </html>

    And lastly:

    Setting All of the Font Properties


    <html>

    <head>

    <style type="text/css">

    p

    {

    font: italic small-caps 900 40px impact

    }

    </style>

    </head>

    <body>

    <p>Attack of the Giant Midgets!</p>

    </body>

    </html>

    More Style Sheets Articles
    More By James Payne


       · Welcome to my article in an ongoing series on CSS. Here, in this episode, we discuss...
       · "table-layout:" should be "auto". A CSS2 validation error occurs with table-layout:...
       · Hey, thanks for catching that. I'll be sure to change it in the...
     

    STYLE SHEETS ARTICLES

    - CSS: Continuing the Clarification of CSS Cla...
    - CSS: Top Secret Classification
    - CSS: Dimensions
    - CSS: Margins and Padding
    - CSS: Crossing the Border
    - CSS: Text, Fonts, and Tables
    - CSS: Working with Text
    - CSS: Backgrounds
    - CSS for the Newbie
    - Styling Web Page Headers with Transparent Ba...
    - Creating Angled Corners with Transparent Bac...
    - Style Sheets for a Useful Links Page
    - Modifying the Look and Feel of Individual El...
    - Using Persistent Styles with Multiple Style ...
    - Working with Multiple Style Sheets






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway