I'm taking a demo of @Rohan Kumar.
Just changes of css: you need to do as the following
First Issue: you need to set border-bottom as the below contents background as if you are using full border
border-bottom:1px solid white;
Second Issue: you can do as @Rohan Kumar by defining the height or you can set margin and padding to 0 if needed increase the padding value for top and bottom.