simple css question

Jump to First Reply
rokrok
Posted:
in Genius Bar edited January 2014
so, i am forcing myself to go through css tutorials again, but here is something i have yet to hear a good explanation for...



why don't



Code:


#id_name_here td {font-color: #FFFFFF;}







and



Code:


td#id_name_here {font-color: #FFFFFF;}







do the same thing? don't they both say, in essence, "anywhere i see a td element with the id tag of "id_name_here", i will make the text white"? i guess not because i keep getting them mixed up, and getting incorrect effects. my solution for now has been "try it one way, if that doesn't work, try it the other," but that's a REALLY roundabout method.



thanks for any explanation. edit: please note that i want to understand why there's a difference. i actually know there is a difference, it just doesn't make sense to me. and no, i don't buy the "because that's just the way it is" excuse. didn't work when i was a kid, won't work now.
Sign In or Register to comment.