MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Cathy Zou, thanks for your reply. Your solution worked. But even at 0px, I needed more reduction in spacing. I tried negative values, but that didn't work.
Member
15 Points
62 Posts
CSS Form Vertical Spacing
Jun 28, 2017 07:50 PM|jeff.hooper|LINK
At https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_form_horizontal_static&stacked=h, please paste/Run the following HTML and view the results:
How do I reduce the vertical spacing between the rows?
Thanks!
Star
8670 Points
2882 Posts
Re: CSS Form Vertical Spacing
Jun 29, 2017 09:03 AM|Cathy Zou|LINK
Hi jeff.hooper
For your problem, you coud change the margin-bottom of rows,
You could add css in you page as below:
Best regard
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
10 Points
1 Post
Re: CSS Form Vertical Spacing
Jun 29, 2017 12:36 PM|NickyAnn|LINK
.col-sm-10 {
width: 83.33333333%;
height: 20px;
}
Give height as 20px for .col-sm-10 and .col-sm-2
Regards,
Nicky
Member
15 Points
62 Posts
Re: CSS Form Vertical Spacing
Jun 29, 2017 02:47 PM|jeff.hooper|LINK
Cathy Zou, thanks for your reply. Your solution worked. But even at 0px, I needed more reduction in spacing. I tried negative values, but that didn't work.
Member
15 Points
62 Posts
Re: CSS Form Vertical Spacing
Jun 29, 2017 02:48 PM|jeff.hooper|LINK
Nicky, this gave me the desired spacing: