I want to decrease the font size of each element with increasing number in list:
<ul>
<li>Number 1</li>
<li>Number 2</li>
<li>Number 3</li>
</ul>
Should result in something like
- Number 1
- Number 2
- Number 3
where the first element has a font size of 25px, second has 20px, third has 15 px and so on.
Is there a way to do this with CSS only?