Home >Web Front-end >HTML Tutorial >Solution to the problem of leaving a blank line above and below the form when inserting it_HTML/Xhtml_Web page production
I don’t know if you have noticed when making a web page that after inserting a form, there is often a blank line above and below the form. This makes the layout of the web page ugly, so today I will teach you how to solve the problem of blank lines when inserting a form. method.
In fact, the empty lines that appear above and below the form are not really empty lines, but the form comes with a default margin value, but this value is not equal to 0, so we only need to use css to control the form Margin=0 can solve this problem. The CSS code is as follows: