I am trying to make an ordered list go by the side of a textarea, such that it has line numbers, but I can't seem to make the textarea and the ordered list line up. I don't know the default CSS for a textarea that I could use on the ordered list, where could I find the default CSS of a textarea?
CodePudding user response:
You can check default values from browser developer console. When you click an HTML tag, It will show all applied CSS to your selected element.
Also you can use this link. It has all elements and default styles.
For example, textarea
has no default styling on it.
You mentioned log outing your element to console and all values seems empty string. It is because textarea
has no default styling on it.