Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

CSS Tutorial
CSS Introduction
CSS Basic Syntax
CSS How to Insert
CSS Selector
CSS Internal
CSS External
CSS Inline
CSS Classes
CSS Background
CSS Text
CSS Font
CSS Border
CSS Margin
CSS Padding
CSS List
CSS Dimension
CSS Classification
CSS Positioning
CSS Pseudo-class
CSS Pseudo-element
CSS Media Types
CSS Mouse Cursor
CSS Properties
CSS Layers
CSS Float
CSS Summary

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


CSS Classification Properties
Previous Next

  • To specify how an element functions in the document,Classification properties is used.



  • You have to specify the display properties of an element explicitly or the browser won't know how to display it to format XML documents .




  • white-space

  • To specify how the white space in the code of an element should be treated,the white-space attribute is used.

  • It takes one of three possible values:


  • 1.normal - ignore all extra spaces and all carriage returns
    2.pre- preserve al extra spaces and all carriage returns
    3.nowrap - do not break the element across lines
    CSS Code of "normal" white-space
    <p style="white-space: normal;">
    Duis autem vel eum iriure dolor
    in hendrerit in vulputate velit
    esse molestie consequat, vel illum
    dolore eu feugiat nulla facilisis.
    </p>



    visibility

  • To specify whether an element is visible or hidden,this property is used.

  • This means whether an element shows up in the document or not,you can specify. This means that you can create hidden elements that become visible when certain events occur.
  • CSS Code with visibility set to "hidden".
    <p style="visibility: hidden;">
    Duis autem vel eum iriure dolor
    in hendrerit in vulputate velit
    esse molestie consequat, vel illum
    dolore eu feugiat nulla facilisis.
    </p>

    Visible is the default. This property is most commonly used with client-side scripting for Dynamic HTML.




    display

  • To specify how an element displays,the display property is used . It defines, in a sense, what kind of element it is. You are not really expected to know how this works yet, merely that it does.

  • It takes one of the following values:
  • none - do not display
  • block
  • inline
  • list-item
  • run-in - item runs into the following content, like an inline heading
  • compact
  • marker
  • table
  • inline-table
  • table-row-group
  • table-header-group
  • table-footer-group
  • table-row
  • table-column-group
  • table column
  • table-cell
  • table-caption
  • For Dynamic HTML pages,the only place you will currently see this property used in an XHMTL document as collapsing (or clamshell) menus, where the property is flip-flopped between none and (usually) block.

    <h3 style="display: run-in;">Example:</h3> <h4 style="float: left;">Example:</h4>

    Here is a 2x2 table. Without the use of table tags,it is made. Some divisions is used, modified with the display: property. If your browser does not support using the display then you can't see a 2x2 grid of table cells, then : property this way with XHTML. Note that this is not a recommended practice, but makes for a good example.

    <div style="display: table;">
    <div style="display: table-row;">
    <div style="display: table-cell;">
    Here is a 2x2 table.
    </div>
    <div style="display: table-cell;">
    It is made without the use of table tags. ...
    </div>
    </div>
    <div style="display: table-row;">
    <div style="display: table-cell;">
    If you don't see a 2x2 grid of table cells, ...
    </div>
    <div style="display: table-cell;">
    Note that this is not a recommended practice, ...
    </div>




    The following example creating a horizontal menu

    CSS Code

    <html>
    <head>
    <style type="text/css">
    ul
    {
    float:left;
    width:100%;
    padding:0;
    margin:0;
    list-style-type:none;
    }
    a
    {
    float:left;
    width:6em;
    text-decoration:none;
    color:white;
    background-color:purple;
    padding:0.2em 0.6em;
    border-right:1px solid white;
    }
    a:hover {background-color:#ff3300}
    li {display:inline}
    </style>
    </head>

    <body>
    <ul>
    <li><a href="#">Link one</a></li>
    <li><a href="#">Link two</a></li>
    <li><a href="#">Link three</a></li>
    <li><a href="#">Link four</a></li>
    </ul>

    <p>
    In the example above, we let the the a element float to the left and ul element .
    In inline elements ,the li elements will be displayed(no line break before or after the element). This forces the list to be on one line.
    The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
    To make it more fancy,we add some colors and borders .
    </p>

    </body>
    </html>

     





    The follwing table describe the classification Properties:

    Property Description values
    clear Sets the sides of an element where other floating elements are not allowed left
    right
    both
    none
    cursor Specifies the type of cursor to be displayed url
    auto
    crosshair
    default
    pointer
    move
    e-resize
    ne-resize
    nw-resize
    n-resize
    se-resize
    sw-resize
    s-resize
    w-resize
    text
    wait
    help
    display Sets how/if an element is displayed none
    inline
    block
    list-item
    run-in
    compact
    marker
    table
    inline-table
    table-row-group
    table-header-group
    table-footer-group
    table-row
    table-column-group
    table-column
    table-cell
    table-caption
    float Sets where an image or a text will appear in another element left
    right
    none
    position Places an element in a static, relative, absolute or fixed position static
    relative
    absolute
    fixed
    visibility Sets if an element should be visible or invisible visible
    hidden
    collapse


    Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
    • blinkbits
    • BlinkList
    • blogmarks
    • co.mments
    • connotea
    • del.icio.us
    • De.lirio.us
    • digg
    • Fark
    • feedmelinks
    • Furl
    • LinkaGoGo
    • Ma.gnolia
    • NewsVine
    • Netvouz
    • RawSugar
    • Reddit
    • scuttle
    • Shadows
    • Simpy
    • Smarking
    • Spurl
    • TailRank
    • Wists
    • YahooMyWeb

    Previous Next

    HTML Quizes
    HTML Quiz
    XHTML Quiz
    CSS Quiz
    TCP/IP Quiz
    XML Quizes
    XML Quiz
    XSL Quiz
    XSLT Quiz
    DTD Quiz
    Schema Quiz
    XForms Quiz
    XSL-FO Quiz
    XML DOM Quiz
    XLink Quiz
    XQuery Quiz
    XPath Quiz
    XPointer Quiz
    RDF Quiz
    SOAP Quiz
    WSDL Quiz
    RSS Quiz
    WAP Quiz
    Web Services Quiz
    Browser Scripting Quizes
    JavaScript Quiz
    VBScript Quiz
    AJAX Quiz
    DHTML Quiz
    HTML DOM Quiz
    WMLScript Quiz
    E4X Quiz
    Server Scripting Quizes
    ASP Quiz
    PHP Quiz
    PERL Quiz
    SQL Quiz
    ADO Quiz
    .NET (dotnet) Quizes
    Microsoft.Net Quiz
    XML Web Services Quiz
    ASP.Net Quiz
    .Net Mobile Quiz
    C# : C Sharp Quiz
    ADO.NET Quiz
    VB.NET Quiz
    Multimedia Quizes
    SVG Quiz
    Flash Quiz
    Media Quiz
    SMIL Quiz
    Web Building  Quizes
    Web Browsers Quiz
    Web Hosting Quiz
    W3C Quiz
    Web Building Quiz
    Web Quality Quiz
    Web Semantic Quiz
    Web Careers Quiz
    Java Quizes
    Java Quiz
    JSP Quiz
    Servlets Quiz
    Struts Quiz
    EJB Quiz
    JMS Quiz
    JMX Quiz
    Programming Langauges Quizes
    C Quiz
    C++ Quiz
    Visual Basic Quiz
    Data Structures Using C Quiz
    Soft Skills Quizes
    Communication Skills Quiz
    Time Management Quiz
    Project Management Quiz
    Team Work Quiz
    Leadership Skills Quiz
    Corporate Communication Quiz
    Negotiation Skills Quiz

    Privacy Policy
    Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.