Style Sheets
  Home arrow Style Sheets arrow Page 3 - CSS: Top Secret Classification
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  
Mobile Linux 
App Generation ROI 
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: Top Secret Classification
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2008-04-14

    Table of Contents:
  • CSS: Top Secret Classification
  • Floating Elements
  • Floating Text for a Fairy Tale Look
  • Creating a Menu

  • 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


    CSS: Top Secret Classification - Floating Text for a Fairy Tale Look


    (Page 3 of 4 )

    Sometimes in books, especially those difficult-to-read ones written for children, you will see a paragraph that starts off with an enormous first letter. You can create these obese beginnings in HTML by making floating text, like so:


    <html>

    <head>

    <style type="text/css">

    span

    {

    float:left;

    width:0.8em;

    font-size:500%;

    font-family:times;

    line-height:80%;

    }

    </style>

    </head>

    <body>

    <p>

    <span>O</span>nce upon a time in a land far, fary away there lived a bad-assed martial artist named Bruce Lee. He ruled all of the land with an iron fist and was known to round kick ugly babies on sight. One year a guy with a dumb beard and too much plastic surgery named Chuck Norris came to visit him. Seeing how hideous the red-haired fiend was, Bruce Lee crane kicked him so hard he turned into Mr. T and went on to enjoy a modicum of fame.</p>

    <p>The End</p>

    </body>

    </html>

    We could of course also float some text to the right:


    <html>

    <head>

    <style type="text/css">

    span

    {

    float:right;

    width:0.8em;

    font-size:200%;

    font-family:times;

    line-height:80%;

    border: 1px solid black

    }

    </style>

    </head>

    <body>

    <p>

    <span>Bruce: <i>A Life Story</i></span>Once upon a time in a land far, fary away there lived a bad-assed martial artist named Bruce Lee. He ruled all of the land with an iron fist and was known to round kick ugly babies on sight. One year a guy with a dumb beard and too much plastic surgery named Chuck Norris came to visit him. Seeing how hideous the red-haired fiend was, Bruce Lee crane kicked him so hard he turned into Mr. T and went on to enjoy a modicum of fame.</p>

    <p>The End</p>

    </body>

    </html>

    More Style Sheets Articles
    More By James Payne


       · This article was great. It gave me the information I needed to know and an clear...
       · Thanks for stopping by to read my article. In this issue I discuss such topics as...
     

    STYLE SHEETS ARTICLES

    - Image Replacement CSS Techniques
    - Using BlueTrip`s Success, Notice and Error C...
    - More Uses for the Thin and Caps CSS Classes ...
    - Styling Definition Lists with the BlueTrip C...
    - Styling Unordered and Ordered HTML Lists wit...
    - Using the BlueTrip CSS Framework`s Thin and ...
    - Adding Borders to Web Page Columns with Blue...
    - Introducing the BlueTrip CSS Framework
    - Using a Background Grid to Assist Web Page L...
    - Extending the Rule Of Thirds for Web Page La...
    - A Two-Column Web Page Layout Based on the Ru...
    - Using the Rule Of Thirds for Web Page Layout
    - Swapping Columns Using the Divine Ratio for ...
    - Using the Golden Ratio in Liquid Web Page De...
    - Fundamental Design Principles for Web Page L...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek