2
So I have the following structure HTML
<div>
<header>Esse é o cabeçalho</header>
<article>Esse é o artigo que vem sobre do cabeçalho</article>
</div>
I’ve got about 10 div's
one below the other.
The problem: Has header
that has a very large text like 10 words and other smaller ones. So when I will reduce the screen to mobile the header previously occupied 1 line now occupies 2 lines.
And this, hinders the use of line-height
1-line.
Is there any resource where I can calculate in running time and apply for each header
the line-header
correspondent?
I’m actually doing something like:
div > header {
height: 50px;
line-height: 50px;
}
But it only works for one line.
Some recourse?
Thank you Ugo, it worked!
– Carlos Rocha
@Carlosrocha without problems my dear! Always keep in mind that line-height is to control the space between a line and another of a <p> for example. This type of use to align is not advisable...
– hugocsl