Forum Moderators: not2easy
I am new to CSS so please forgive me if I'm about to ask a dumb question.
I came across the following code on a website that I was visiting and I was hoping that someone here could help me interpret it.
div.myclass a:hover{
/* some stuff here */
}
If I understand everything that I've read about CSS, "div" is the selector, "myclass" is the class and "hover" is the pseudo class.
What I'm confused about is that I've never seen a definition as complicated as this ... the most complicated I've seen is something like: a.myclass:hover{ /* some stuff */ }
Can someone please explain exactly what the first definition says in plain English? Does it say: "apply the following formatting to links that are contained in a div of class myclass?" Also, is it valid within all browsers?