Style Sheets
  Home arrow Style Sheets arrow Page 4 - CSS: Continuing the Clarification of CSS C...
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  
Moblin 
JMSL Numerical Library 
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: Continuing the Clarification of CSS Classification
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-05-12

    Table of Contents:
  • CSS: Continuing the Clarification of CSS Classification
  • Absolutely Relatively Speaking
  • Changing the Way You Curse
  • Attack of the Invisible Man

  • 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: Continuing the Clarification of CSS Classification - Attack of the Invisible Man


    (Page 4 of 4 )

    Arguably one of the coolest pervert super powers around, the ability to turn invisible is a stalker's dream. Super power + women's locker room = what I want for Christmas. While I haven't found a way to invent invisibility yet, I can show you how to make your elements invisible, or more boring, visible. Here is how:


    <html>

    <head>

    <style type="text/css">

    h1.visible {visibility:visible}

    h1.invisible {visibility:hidden}

    </style>

    </head>

    <body>

    <h1 class="visible">Now you see me</h1>

    <h1 class="invisible">Now you don't. Here's a hint: I'm hiding in the bushes.</h1>

    </body>

    </html>

    Cleared for Landing

    You can clear the side of an element using the clear property. Using this property prevents other floating elements from appearing on a given side. Here are the properties you can set:

      Left: No floating allowed on left side

      Right: No floating allowed on the right side

      Both: No floating allowed on either side

      Default: Floating allowed on either side

    Here is how you set the clear:


    <html>

    <head>

    <style type="text/css">

    img

    {

    float:right;

    clear:both;

    }

    </style>

    <img src="sample.gif" width="100" height="80" />

    <img src="sample.gif" width="100" height="80" />

    </body>

    </html>

    Well that is it for the Classification properties. In our next tutorial we will discuss Positioning in CSS, some of which we covered in the past two articles. So be sure to come back often.

    Till then...


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    STYLE SHEETS ARTICLES

    - Swapping Column Positions in Web Page Layout...
    - Creating Web Page Layouts with Negative Marg...
    - 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







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