(Created page with "==What is CSS?== # CSS stands for Cascading Style Sheets # Styles define how to display HTML elements # Styles were added to HTML 4.0 to solve a problem # Extern...") |
|||
| Line 31: | Line 31: | ||
# If the Customize Plugin CSS is activated, it will load last | # If the Customize Plugin CSS is activated, it will load last | ||
It is important to keep this hierarchy in mind because the CSS that loads last will take priority over any CSS loaded before it. | It is important to keep this hierarchy in mind because the CSS that loads last will take priority over any CSS loaded before it. | ||
| + | |||
| + | |||
| + | ==How to use CSS Inspection Tools== | ||
| + | <h3>Installing Firebug</h3> | ||
| + | There are a couple of FREE CSS Inspection Tools which can be used to do this. They are Firebug and Google's Chrome Inspection tool. | ||
| + | [[File:Firebug.png|200px|thumb|right|alt=Install Firebug|Install Firebug]] | ||
| + | From Mozilla Firefox: | ||
| + | # Go to http://getfirebug.com/ | ||
| + | # Download and install the Firebug extension | ||
| + | # Once installed you will see the Firebug icon in the upper right-hand corner of Firefox. | ||
| + | |||
| + | |||
| + | |||
| + | ==Using Firebug To Change Padding of an element== | ||
| + | [[File:Usingfirebugchangecss.png|200px|thumb|right|alt=Selecting elements|Selecting elements with Firebug]] | ||
| + | From Mozilla Firefox: | ||
| + | # Go to your site | ||
| + | # Click on the Firebug icon in the upper right-hand corner of your browser | ||
| + | # Click on the Inspection icon on the Firebug interface | ||
| + | # Next, click on the section of the page to be inspected | ||
| + | # Upon clicking any element you will see the corresponding HTML and CSS code highlighted in Firebug | ||
| + | # Copy the CSS code you are wanting to change | ||
| + | # Return to the Pagelines Settings and select "Custom CSS" | ||
| + | # Paste the CSS code that is being altered into the Custom CSS section | ||
| + | # "Save Options" and refresh your browser to see the changes | ||
| + | |||
| + | |||
| + | |||
| + | ==Using Google's Chrome To Change Padding of an element== | ||
| + | [[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) | ||
| + | # Go to your site | ||
| + | # Right Click anywhere on the page and then click "Inspect Element" | ||
| + | # Click on the Inspection icon on the bottom row of the Inspection interface | ||
| + | # Next, click on the section of the page to be inspected | ||
| + | # Upon clicking any element you will see the corresponding HTML and CSS code highlighted in Firebug | ||
| + | # Copy the CSS code you are wanting to change | ||
| + | # Return to the Pagelines Settings and select "Custom CSS" | ||
| + | # Paste the CSS code that is being altered into the Custom CSS section | ||
| + | # "Save Options" and refresh your browser to see the changes | ||
Contents |
HTML was never intended to contain tags for formatting a document.
HTML was intended to define the content of a document, like:
This is a paragraph.
When tags like , 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 webpage loads there is an order (hierarchy) by which the CSS of a 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.
There are a couple of FREE CSS Inspection Tools which can be used to do this. They are Firebug and Google's Chrome Inspection tool.
From Mozilla Firefox:
From Mozilla Firefox:
From Google Chrome: (The CSS Inspection Tool is built into Chrome)