+ 5

CSS style for elements

I have seen in some website that CSS style use elements to style in a different way. For example: #div>p (choosing a paragraph in a div). Is this correct and can I write my style sheet this way???

8th Mar 2017, 7:24 PM
Sam Malekahmadi
Sam Malekahmadi - avatar
4 Respuestas
+ 4
yes it's fine. I would recommend searching for css diner on Google, it will really help you with this!
9th Mar 2017, 10:12 AM
Matthew Lester
Matthew Lester - avatar
+ 3
yes its correct
8th Mar 2017, 7:36 PM
mwaka
+ 3
it is correct
22nd Mar 2017, 3:52 PM
toykam
toykam - avatar
0
yes its correct
21st Mar 2017, 8:48 AM
Pratyaksha