Alright, it has been a *long* time since I read a CSS spec, so here is my question(s).
1. I have seen styles like this:
element#idName[id]
What does the "[id]" part do? I mean, it is already inside an element with an ID of
"idName" so why is the attribute included? Is it doing something that I am just not aware
of?
2. How could I apply a style to all Ps with an ID of fn? n being a number from 1 to
whatever.
I thought that:
p[id~="f"]
....would do it, but apparently not.
Thanks.
-Lost
1. I have seen styles like this:
element#idName[id]
What does the "[id]" part do? I mean, it is already inside an element with an ID of
"idName" so why is the attribute included? Is it doing something that I am just not aware
of?
2. How could I apply a style to all Ps with an ID of fn? n being a number from 1 to
whatever.
I thought that:
p[id~="f"]
....would do it, but apparently not.
Thanks.
-Lost
Comment