I have two different paragraph tags, each with a different size. The problem is that I want the two texts to move to the center of the text line, so they appear even. Below is my current code, and images of desired results. Note that these are separate tags, using display: inline
to make the appear next to each other.
Example of current code
.big {
font-size: 42px;
display: inline;
}
.small {
font-size: 12px;
display: inline;
}
<p class="big">Test</p>
<p class="small">Test</p>