HTML - Styles menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Nolixz's Avatar ★ Elder ★
    Reputation
    1000
    Join Date
    Oct 2006
    Posts
    1,371
    Thanks G/R
    6/17
    Trade Feedback
    16 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML - Styles

    Author: w3schools.com

    How to Use Styles

    When a browser reads a style sheet, it will format the document according to it. There are three ways of inserting a style sheet:
    External Style Sheet

    An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section.

    HTML Code:
    Code:
    <head>
    <link rel="stylesheet" type="text/css"
    href="mystyle.css">
    </head>
    Internal Style Sheet

    An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section with the <style> tag.

    HTML Code:
    Code:
    <head>
    <style type="text/css">
    body {background-color: red}
    p {margin-left: 20px}
    </style>
    </head>
    Inline Styles

    An inline style should be used when a unique style is to be applied to a single occurrence of an element.

    To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

    HTML Code:
    Code:
    <p style="color: red; margin-left: 20px">
    This is a paragraph
    </p>
    Style Tags

    <style> - Defines a style definition
    <link> - Defines a resource reference
    <div> - Defines a section in a document
    <span> - Defines a section in a document
    <font> - Deprecated. Use styles instead
    <basefont> - Deprecated. Use styles instead
    <center> - Deprecated. Use styles instead


    ***I DO NOT TAKE CREDITS FOR THIS***



    HTML - Styles

Similar Threads

  1. Changing Hair Styles?
    By Charade in forum World of Warcraft Model Editing
    Replies: 12
    Last Post: 01-03-2007, 10:28 AM
  2. Flying in Style!!
    By Aran in forum World of Warcraft Model Editing
    Replies: 16
    Last Post: 12-28-2006, 11:17 PM
  3. Where is the file that changes the hair style?
    By dogmax in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-16-2006, 11:44 AM
  4. Request: Hair Style Change
    By Charade in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-27-2006, 09:36 AM
  5. Larval Acid Farming - AQ Style
    By impulse102 in forum World of Warcraft Guides
    Replies: 0
    Last Post: 05-08-2006, 10:18 AM
All times are GMT -5. The time now is 01:53 PM. 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