0

CSS Inheritance

But the mydiv didn't mention the p element in it. So way the p get to style as mydiv?

8th Mar 2017, 7:30 PM
Sam Malekahmadi
Sam Malekahmadi - avatar
1 ответ
+ 1
In CSS style is inherited. If you apply a style to body then it will also be applied to entire page. Ex; body { color: white; } above snippet will color text, border, etc white until overwritten. This rule is same for all parent and child elements.
8th Mar 2017, 8:21 PM
Ravindra Sisodia
Ravindra Sisodia - avatar
Актуальное сегодня
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes