A question about font variant property | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

9th Jul 2018, 8:24 PM
Yusuf
Yusuf - avatar
5 Answers
+ 2
It works well when you replace first p with something like div
9th Jul 2018, 8:41 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 3
Yani iki p tagini iç içe koyduğumuzda miras özelliği işlemiyor mu? 😁
9th Jul 2018, 8:43 PM
Yusuf
Yusuf - avatar
+ 2
İşlemiyor olabilir ama internette işlemediğini yazan bir yer görmedim
9th Jul 2018, 9:23 PM
Mert Yazıcı
Mert Yazıcı - avatar
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <p class="base">Base</p> <p class="child">Child</p> </body> </html>
4th Oct 2018, 4:54 PM
Khairul Abdillah Maru
Khairul Abdillah Maru - avatar
0
I think we can NOT make p inherit from p but we can make it inherit fron its “mother” :D “body”
29th Apr 2020, 7:37 PM
Almo Sawwaraty