[code]
1-1 This is small.
1-2 This is normal.
1-3 This is a larger.
I like to make like the following
in 1-1, the font-size of the div is 20px, so I like to make the size of the word “small” smaller than the font-size of mother div , i.e 19px, 18px, or 17px.
in 1-2, the font-size of the div is 20px, so I like to make the size of the word “normal” is same as the font-size of mother div, i.e . 20px.
in 1-3, the font-size of the div is 20px, so I like to make the size of the word “larget” larger than the font-size of mother div , i.e 21px, 22px, or 23px.
in 2-1, the font-size of the div is 30px, so I like to make the size of the word “small” smaller than the font-size of mother div , i.e 29px, 28px, or 27px.
in 2-2, the font-size of the div is 30px, so I like to make the size of the word “normal” is same as the font-size of mother div, i.e . 30px.
in 2-3, the font-size of the div is 30px, so I like to make the size of the word “larget” larger than the font-size of mother div , i.e 31px, 32px, or 33px.
in 3-1, the font-size of the div is 50px, so I like to make the size of the word “small” smaller than the font-size of mother div , i.e 49px, 48px, or 47px.
in 3-2, the font-size of the div is 50px, so I like to make the size of the word “normal” is same as the font-size of mother div, i.e . 50px.
in 3-3, the font-size of the div is 50px, so I like to make the size of the word “larget” larger than the font-size of mother div , i.e 51px, 52px, or 53px.
The following is my trials for it, but all are failed.
I tried to make it with % in 4-1, 4-2,4-3
I tried to make it with em in 5-1, 5-2,5-3
I tried to make it with rem in 6-1, 6-2,6-3
Can I make it with your help?