How do I align a word horizontally with letters that are sequentially smaller?
Something like this:
I've tried to do this in HTML+CSS , but I can't.
This is my code:
.a{font-size: 1.3em;margin:auto;}
.b{font-size: 1em;margin:auto;}
.c{font-size: .9em;margin:auto;}
.d{font-size: .8em;margin:auto;}
.e{font-size: .7em;margin:auto;}
.f{font-size: .6em;margin:auto;}
.g{font-size:.5em ;margin:auto;}
.h{font-size: .4em;margin:auto;}
<h1>
<div class="a">M</div>
<div class="b">i</div>
<div class="c">L</div>
<div class="d">e</div>
<div class="e">t</div>
<div class="f">t</div>
<div class="g">r</div>
<div class="h">a</div>......texto normal
</h1>
Another slightly more generic option:
Surely there is something more efficient and can be done with fewer resources.
The first thing that occurs to me would be to do it with blocks for each letter
<span>(letra)</span>
.For a short and static text it can be considered a solution, for a longer or dynamic text, I don't know if it would be the most appropriate.