- Joined
- Oct 31, 2021
- Messages
- 7
- Reaction score
- 0
Hello folks;
I have an oddball question. I'm working on a website where I would like to make text in different areas slightly larger then the parent element. Let's say there are three strings of text, all of different size. I want one word in each of these to be 10% larger. Can I use var to set different font sizes and then use calc on it?
something like
div { font-size: calc(parent-font * 1.1);
}
I made a quick codepen to demonstrate this
I have an oddball question. I'm working on a website where I would like to make text in different areas slightly larger then the parent element. Let's say there are three strings of text, all of different size. I want one word in each of these to be 10% larger. Can I use var to set different font sizes and then use calc on it?
something like
div { font-size: calc(parent-font * 1.1);
}
I made a quick codepen to demonstrate this