I have a text area with id="aboutme" and an span with class="maxlength-feedback", I want the span to be positioned in the top-right-hand corner of the textarea. It will be a counter for the text area.
I know both elements should have position="relative" and the span should be display="inline-block", but it’s not working.
I would appreciate any help. Thanks.
Just do it like this
Explanation: Wrap your
textareainside a containerdivand giveposition: relative;to the container, andposition: absolute;tospan, now to be sure your div default behavior which isdisplay: block;will make your span flow on the extreme left so usedisplay: inline-block;for your container divDemo
HTML
CSS