+ 3
A question about font variant property
I made a p tag inside a p tag. And I do expect that the p tag which is inside needs to be small-caps. https://code.sololearn.com/Wom570o4boik/?ref=app What is my mistake? Thank you.
5 odpowiedzi
+ 2
It works well when you replace first p with something like div
+ 3
Yani iki p tagini iç içe koyduğumuzda miras özelliği işlemiyor mu? 😁
+ 2
İşlemiyor olabilir ama internette işlemediğini yazan bir yer görmedim
0
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p class="base">Base</p>
<p class="child">Child</p>
</body>
</html>
0
I think we can NOT make p inherit from p but we can make it inherit fron its “mother” :D “body”