(→How to use CSS Inspection Tools) |
|||
| Line 33: | Line 33: | ||
==How to use CSS Inspection Tools== | ==How to use CSS Inspection Tools== | ||
| − | + | CSS Inspection Tools are essential for isolating the exact selector you need to make the changes you want. Simply turn on inspection mode, hover your mouse over the element you want to change, and it will display the name of the selector that you need to add to your custom CSS. There are a couple of FREE CSS Inspection Tools which can be used to do this. | |
| − | There are a couple of FREE CSS Inspection Tools which can be used to do this. | + | |
| + | * Firebug - An add-on for Mozilla Firefox | ||
| + | * Google's Chrome internal Inspection tool | ||
| + | |||
| + | ===Install Firebug=== | ||
| + | |||
[[File:Firebug.png|200px|thumb|right|alt=Install Firebug|Install Firebug]] | [[File:Firebug.png|200px|thumb|right|alt=Install Firebug|Install Firebug]] | ||
From Mozilla Firefox: | From Mozilla Firefox: | ||
| Line 41: | Line 46: | ||
# Once installed you will see the Firebug icon in the upper right-hand corner of Firefox. | # Once installed you will see the Firebug icon in the upper right-hand corner of Firefox. | ||
| − | === | + | ===Use Firebug To Change Padding of an element=== |
[[File:Usingfirebugchangecss.png|200px|thumb|right|alt=Selecting elements|Selecting elements with Firebug]] | [[File:Usingfirebugchangecss.png|200px|thumb|right|alt=Selecting elements|Selecting elements with Firebug]] | ||
From Mozilla Firefox: | From Mozilla Firefox: | ||
| Line 54: | Line 59: | ||
# "Save Options" and refresh your browser to see the changes | # "Save Options" and refresh your browser to see the changes | ||
| − | === | + | ===Use Google Chrome's Inspection Tool To Change Padding of an element=== |
[[File:UsingchromeInspectiontool.png|200px|thumb|right|alt=Selecting elements|Selecting elements with Chrome's Inspection Tool]] | [[File:UsingchromeInspectiontool.png|200px|thumb|right|alt=Selecting elements|Selecting elements with Chrome's Inspection Tool]] | ||
From Google Chrome: (The CSS Inspection Tool is built into Chrome) | From Google Chrome: (The CSS Inspection Tool is built into Chrome) | ||
Contents |
HTML was intended to define the content of a document, not to contain tags for formatting the document. For example:
<h3 style="color: red">This is an h3 heading with a Red color style</h3>
would output:
When tags like <font>, and color attributes were added to the HTML 3.2 specification, it started a nightmare for web developers. Development of large web sites, where fonts and color information were added to every single page, became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created CSS.
In HTML 4.0, all formatting could be removed from the HTML document, and stored in a separate CSS file.
All browsers support CSS today.
When a PageLines 2.0 webpage loads, there is an order (hierarchy) by which the CSS of that page is loaded:
It is important to keep this hierarchy in mind because the CSS that loads last will take priority over any CSS loaded before it.
CSS Inspection Tools are essential for isolating the exact selector you need to make the changes you want. Simply turn on inspection mode, hover your mouse over the element you want to change, and it will display the name of the selector that you need to add to your custom CSS. There are a couple of FREE CSS Inspection Tools which can be used to do this.
From Mozilla Firefox:
From Mozilla Firefox:
From Google Chrome: (The CSS Inspection Tool is built into Chrome)