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  
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: 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

    - Using the Custom -moz-border-radius Property...
    - Using CSS3`s Border-Radius Property to Build...
    - Adding Semantic Meaning to Styled Code Block...
    - Styling Code blocks with CSS: Using pre HTML...
    - Building Rounded Corners with CSS3
    - Finishing a Casual Navigation Bar with CSS S...
    - Defining a Navigation Bar`s Hover State with...
    - Styling a Blog`s Links Bar with CSS Sprites
    - Creating an Artistic Blog Header with CSS Sp...
    - Defining the Active State of Menu Sections f...
    - Styling the Hover State of a CSS Sprite-Base...
    - Building CSS Sprite-Based Navigation Bars
    - Creating Framed Pictures with CSS
    - Using a CSS Shading Effect to Decorate Images
    - Decorating Images with CSS







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