You may not know it, but a link has four different states that it can be in. CSS 2.1 allows you to customize each state. Please refer to the following keywords that each correspond to one specific state:
* active - this is a link that is in the process of being clicked
* focus - applies a style to an element in focus
* hover - this is a link currently has a mouse pointer hovering over it/on it
* link - this is a link that has not been used, nor is a mouse pointer hovering over it
* visited - this is a link that has been used before, but has no mouse on it
* first-child - special style to an element that is the first child of another element
* lang - specifies a language for the specified element
Order matters. If "a:active" precedes "a:hover", the effects in "a:hover" will take precedence. So, in this example, you would not see the color change when the user clicks down on a link.
Pseudo Classes
You can set links contained in different parts of your web page to be different colors by using the pseudo class. For example, lets say you want your links in the content area to have a different color then the links in the left or right column of your webpage.
You can do this in the following fashion:
#content a:link {color: #009900;}
#content a:visited {color: #999999;}
#content a:hover {color: #333333;}
#content a:focus {color: #333333;}
#content a:active {color: #009900;}
Now assuming that you have your main content in a division named "content" all links within that division will now be styled by this new style selector. Should your selector have a different name, just change the #content selector to match your division name.
Then for the links in a column you could use the following:
#column a:link {color: #009900;}
#column a:visited {color: #999999;}
#column a:hover {color: #333333;}
#column a:focus {color: #333333;}
#column a:active {color: #009900;}
Once again, this assumes the name of the column division, just change the name to match yours.
This same method can be accomplished by declaring a class instead of an id.
a.column:link {color: #009900;}
a.column:visited {color: #999999;}
a.column:hover {color: #333333;}
a.column:focus {color: #333333;}
a.column:active {color: #009900;}
Though in this case you will need to add a class to each link
<a class="column" href="" title="">some link text</a>
But, there is still yet an easier way
.column a:link {color: #009900;}
.column a:visited {color: #999999;}
.column a:hover {color: #333333;}
.column a:focus {color: #333333;}
.column a:active {color: #009900;}
well you have Pseudo-class:
In CSS, a pseudo-class is way of selecting certain parts of a HTML document based in principle not on the HTML document tree itself and its elements or on characteristics like name, attributes or contents, but on other phantom conditions like language encoding or the dynamic state of an element. The original pseudo-class defined dynamic states of an element that are entered and exited over time, or through user intervention. CSS2 expanded on this concept to include virtual conceptual document components or inferred portions of the document tree e.g. first-child. Pseudo-classes operate as if phantom classes were added to various elements.
and Pseudo-element:
In CSS, pseudo-elements are used to address sub-parts of elements. They allow you to set style on a part of an element's content beyond what is specified in the documents. In other words they allow logical elements to be defined which are not actually in the document element tree. Logical elements allow implied semantic structure to be addressed in CSS selectors.
CSS (Cascading style sheet)
Cascading Style Sheet
A CSS (Cascading Style Sheet) contains information about page formatting. It can include data related to every HTML element. For example, it can define the font face, size, and color of the <h1> tag.
The collection of Graphics that can be applied to web page is Cascading Style Sheet. It can also be abbreviated to CSS.
Yes. A single style-sheet can contain hundreds or even thousands of rules. (If you have thousands of rules, you should probably split them up for the sake of download time.) But there is no theoretical limit on the size of a CSS stylesheet file that doesn't apply to any other file.
CSS (Cascading style sheet)
cascading style sheet
Cascading Style Sheet
CSS (Cascading Style Sheet) is a proramming language that is used with HTML to create the layout of a page.
Cascading Style Sheet is a way of styling your document. It is a set of commands which make a page much more interactive.
The cascading that is referred to in the name cascading style sheets refers to how rules can cascade in how they are implement. CSS rules can be found in three places: an external style sheet, and internal style sheet, or inline. Cascading refers to precedence. A rule located inline, will take precedence over a rule located in an internal style sheet and a rule located in an internal style sheet will take precedence over a rule located in an external style sheet. Within a single style sheet (for example an external style sheet) a rule located at the bottom of the style sheet takes precedence over a rule located at the top of the style sheet. This allows you fine tuned control over your styles and how and when they display and which one will display based upon where in the cascading hierarchy they appear.
Cascading Style Sheet
(if you mean the style sheet language) Cascading Style Sheets
cascading style sheet (CSS)
CSS stands for Cascading Style Sheet, which makes websites beautiful, simply saying.
Foundation is a kind of Cascading Style Sheet. It is also called as Zurb Foundation.
The conflicting style rules are resolved by introducing internal and external CSS. It defined a common cascading style sheet for all.