Unwanted vertical spacing between divs [duplicate]
问题 This question already has answers here : Why does my image have space underneath? (3 answers) Closed 4 years ago . I want to lay out a grid by appending divs to body and letting them wrap around the screen. Why am I getting spacing between the rows? It remains regardless of margin & padding; see below image. Here is the markup: <!DOCTYPE html> <html> <head> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js' type='text/javascript'></script> </head> <body> <style>