1 What is pseudo-class? Sun Oct 31, 2010 4:51 pm
Unknown Data
Registered Member
What is pseudo-class? Learn CSS - part 8 |
What is pseudo-class? I CSS is it popular to use the pseudo-class to give the selectors special effects. As an example can you edit the links by highlightning by mouseover, switching color, depending on whether the link has been visited or not. In other words, do you put your links in different states! Similarly, you can change the first line or the first letter. Syntax As mentioned in lesson number 2, is the CSS syntax shown like this.
This could also be a possibility, depending on what the application is.
CSS is well suited to achieve effects associated with liks on the page. You can display visited links in one way and unvisited links differently. The only requirement is that the browser supports this. You can see some quick examples about this under this content.
One more example These functions are used together with the CSS' class. The example shows the use of the syntax:
A First-line pseudo element is used to give a special effect to the first line of a chapter, a sentence or similar. Notice the phrase in the html document is written in small letters, but will change with'first-line' pseudo-element. Here is a quick example to how a input could look.
The First-letter got the same effect as First-line, just is it only the first letter that's being changed. We got an example to show you it agian.
|
Notice : This tutorial is copyrighted by WebArtz Forum. You may not publish it on anywhere without written permission from the administrators. |