SunQuest
 
       Style Sheets
  Home arrow Style Sheets arrow Page 3 - CSS: Top Secret Classification
IBM developerWorks
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  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
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 / 3
    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

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    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

    - Creating Gradients for Individual Containers...
    - Creating Gradients for Web Page Headers with...
    - SEO Scrolling Frames Problem Solved
    - Building Cross-Browser Background Effects wi...
    - CSS: Pseudo
    - Using PNG Images to Build Background Effects
    - 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







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