Home >Web Front-end >HTML Tutorial >How to solve the problem of a blank row at the top and bottom after inserting a form
This time I will show you how to solve the problem of a blank line at the top and bottom after inserting a form, and how to solve the problem of a blank line at the top and bottom after inserting a form. What are the precautions?. Here is a practical case. Let’s take a look. take a look.
I don’t know if you have noticed when making web pages. After inserting form, there is often a blank line above and below the form. In this way, the layout of the web page will be It’s ugly, so today I’m going to teach you how to solve the problem of blank lines when inserting into a form.
In fact, the blank lines that appear above and below the form form are not real blank lines, but the form form comes with a default margin value, but this value is not equal to 0, so we only need to use This problem can be solved by css controlling the margin=0 of the form. The CSS code is as follows:
form{margin: 0px;}
I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related topics on the php Chinese website article!
Related reading:
How to use H5’s FileReader distribution to read files and an introduction to its methods
How to use H5 to add prohibited scaling Function
How to implement page scaling on the mobile phone in h5
How to read the file field FileReader in H5 in segments Get the file and upload it to the server
The above is the detailed content of How to solve the problem of a blank row at the top and bottom after inserting a form. For more information, please follow other related articles on the PHP Chinese website!