How can you use the css / stylus to raise or lower the first letter in the block?

label { display: block; } label::first-letter { position: relative; top: -10px; margin-top: -10px; padding-top: -10px; } 

So nothing works.

    1 answer 1

    As an option

     label { display: block; font-size: 20px; } label::first-letter { color: tomato; } .bottom::first-letter{ vertical-align: sub; } .top::first-letter{ vertical-align: super; } 
     <label class="bottom">Text label</label> <label class="top">Text label</label> 

    • Thank! This is good, but for layout, pixel-by-pixel is needed, in my case, just below with super ... - CodeGust
    • Yes, you can definitely wrap it in a span ... but this is also the complexity of the question, which would apply positioning to the first letter of the sentence without any specials. Additions - CodeGust