I tried using the “line-height” property to increase the space between two text boxes but it applies only for text.
SO, is there any other CSS property that can be used to increase the vertical spacing between two divisions (“div”s)??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use margin to define the space between the divisions:
CSS:
HTML
This will give them a
5pxtop and bottom margin. The distance between the divisions will be the largest value for margin for any of them, which is5pxin this case.You can specify
margin-topandmargin-bottomseparately if you want more control. For example zero top margin and5pxbottom margin:which is the same as: