Home >Web Front-end >HTML Tutorial >How to deal with leaving a blank line at the top and bottom of the form when inserting a form
This time I will show you how to deal with the problem of leaving a row above and below the form when inserting a form. for What are the things to note? The following are Let’s take a look at practical cases. 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, which makes the layout of the web page ugly. , so today I will teach you how to solve the problem of blank rows 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 the php Chinese website
related articles! Related reading:
In html, how to use style to add attributesHow to use hyperlinks in html Open a new window and control the window propertieshtmlHow to write the input drop-down menuThe above is the detailed content of How to deal with leaving a blank line at the top and bottom of the form when inserting a form. For more information, please follow other related articles on the PHP Chinese website!