(→The CSS Hierarchy) |
m (moved CSS Customization to Custom CSS: Custom CSS) |
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 similar 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)