How to set the table Line spacing in html
Editor to share with you how to set the table line spacing in html, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
In html, you can add margin-bottom and margin-top styles to table elements to set line spacing and syntax.
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
The setting method of table line spacing in html:
1. You can set the margin-bottom property of the table to keep the distance from the bottom table, and the margin-bottom attribute to set the bottom and outer margin of the element.
The code is as follows:
Let's take a look at this through an example:
Button12341234
Output result:
2. You can keep a distance from the upper table by setting the margin-top of the table, and the margin-top attribute sets the upper and outer margin of the element.
The code is as follows:
Let's take a look at this through an example:
Button12341234
Output result:
The above is all the content of the article "how to set the table line spacing in html". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!