Here is an example:
Is it possible to make text fully visible inside textarea?
In real code, css properties getting copied automatically, here is just an example with manually set values.
I’m trying to do text editor, to be seamless with editable div for example.
I’m using line-height to remove vertical empty spaces on some fonts at big font-size.
Thanks.
You can remove the line-height and try controlling the font via a p or span attributes. This will give you better control over design. Also consider zero out padding and margin or using a css reset file so you wont have any cross browser issues.