CSS Quick Tutorial menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Airwavez's Avatar Active Member
    Reputation
    68
    Join Date
    Jul 2007
    Posts
    300
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Quick Tutorial

    I FOUND THIS ON THE NET AND THOUGHT I OUGHT TO SHARE AND CONTRIBUTE TO THIS SECTION.

    Source:CSS Quick Tutorial
    _________________________________________________________________________

    A style sheet is made up of style rules that tell a browser how to present a document. There are various ways of linking these style rules to your HTML documents, but the simplest method for starting out is to use HTML's STYLE element. This element is placed in the document HEAD, and it contains the style rules for the page.

    Note that while the STYLE element is a good method of experimenting with style sheets, it has disadvantages that should be considered before one uses this method in practice. The advantages and disadvantages of the various methods are discussed in the section on linking style sheets to HTML.

    Each rule is made up of a selector--usually an HTML element such as BODY, P, or EM--and the style to be applied to the selector.

    There are numerous properties that may be defined for an element. Each property takes a value, which together with the property describes how the selector should be presented.

    Style rules are formed as follows:


    Code:
      selector { property: value }

    Multiple style declarations for a single selector may be separated by a semicolon:


    Code:
    selector { property1: value1; property2: value2 }
    As an example, the following code segment defines the color and font-sizeH1 properties for H1 and H2 elements:

    Code:
    <HEAD>
    <TITLE>CSS Example</TITLE>
    <STYLE TYPE="text/css">
      H1 { font-size: x-large; color: red }
      H2 { font-size: large; color: blue }
    </STYLE>
    </HEAD>
    The above style sheet tells the browser to show level-one headings in an extra-large, red font, and to show level-two headings in a large, blue font. The CSS1 Specification formally defines all properties and values available. The properties and values are also given in the CSS Properties section of this site.

    This tutorial is intended as a very basic introduction to Cascading Style Sheets and should provide enough information to allow you to experiment with a few of your own styles. For a more in-depth look at Cascading Style Sheets, read the following sections:

    CSS Quick Tutorial

Similar Threads

  1. PSD into CSS + HTML tutorial
    By CssMrR in forum Community Chat
    Replies: 1
    Last Post: 08-06-2011, 09:43 PM
  2. Easy to learn CSS (tutorial)
    By GrooN in forum Programming
    Replies: 2
    Last Post: 04-24-2008, 05:30 PM
  3. Quick DirectX tutorial in C#
    By Apoc in forum Programming
    Replies: 2
    Last Post: 03-23-2008, 02:31 PM
  4. CSS Intermediate Tutorial
    By Chenquie in forum Programming
    Replies: 0
    Last Post: 03-10-2008, 03:40 PM
  5. CSS Beginner Tutorial
    By Chenquie in forum Programming
    Replies: 0
    Last Post: 03-10-2008, 03:38 PM
All times are GMT -5. The time now is 11:53 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search