360haven works best with JavaScript enabled
HTML CSS
Loading
Register
Results 1 to 1 of 1

Thread: HTML CSS

  1. #1
    DEADBEEF

    JizzaBeez is offline
    Join Date : Nov 2010
    Posts : 777
    Array

    HTML CSS

    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
    • Internal style sheet
    • Inline styles

    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]<head>
    <link rel="stylesheet" type="text/css" href="mystyle.css" />
    </head> [/HTML] Internal Style Sheet

    An internal style sheet can be used if one single document has a unique style. Internal styles are defined in the <head> section of an HTML page, by using the <style> tag, like this:
    [HTML]<head>
    <style type="text/css">
    body {background-color:yellow}
    p {color:blue}
    </style>
    </head> [/HTML] Inline Styles

    An inline style can be used if a unique style is to be applied to one single occurrence of an element.
    To use inline styles, use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example below shows how to change the text color and the left margin of a paragraph:
    [HTML]<p style="color:blue;margin-left:20px">This is a paragraph.</p> [/HTML]

  2. The Following User Says Thank You to JizzaBeez For This Useful Post:


 

 

Similar Threads

  1. Help with CSS/HTML
    By Mocha in forum Discussion and Help
    Replies: 4
    Last Post: 03-30-2011, 12:58 AM
  2. HTML Basic
    By JizzaBeez in forum Tutorials and Resources
    Replies: 1
    Last Post: 03-03-2011, 06:41 AM
  3. HTML Colors
    By JizzaBeez in forum Tutorials and Resources
    Replies: 0
    Last Post: 03-03-2011, 06:39 AM
  4. HTML Tables
    By JizzaBeez in forum Tutorials and Resources
    Replies: 0
    Last Post: 03-03-2011, 06:18 AM
  5. HTML Elements
    By JizzaBeez in forum Tutorials and Resources
    Replies: 0
    Last Post: 03-03-2011, 06:00 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.
     

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

Like this page

Google+