I'm trying to do a paragraph highlighted by quote marks, and I want the quote marks to be bigger than the text in the paragraph. so what I have right now is
.quote {
font-style: italic;
margin-bottom: 20px;
}
.quote:before {
content: open-quote;
font-size: larger;
}
.quote:after {
content: close-quote;
font-size: larger;
}
However, quite obviously, it gives a larger-than-normal line height on small-width screens. Is it possible to keep the line-height consistent? If not, how do I implement the large quotation marks?
Thanks
Use css variables and
calc(). Something like this: