html - How to remove the extra white space at the bottom of the panels -


i have drop down menu system. drop down panels contains list menu , 3 images.

#menu {width:1000px;margin:0px auto 0px auto}  #menu #holder{  	display: block;  	width: 100%;  	list-style:none;margin:0px;padding:0px;  }  #menu .menuaholder{margin:0;padding:0;display:inline-block;width:auto}  #menu .menudropdown{z-index: 3;position:absolute;display:none;background-color:#ffffff;-moz-box-shadow: 0 0 6px #c4c4c4;  -webkit-box-shadow: 0 0 6px #c4c4c4;  box-shadow: 0 0 6px #c4c4c4;}  #menu .menuaholder .full{padding:10px;width:980px;text-align:left;}  #menu .menuitem{display:block;padding:5px;color:#000000;}  #menu .menuitem:hover{background-color:#edf0f1;color:#b7b67e;}  #menu .menuaholder:hover .menudropdown{display:table;}  #menu a.item{  list-style-type: none;  list-style-image: none;  color: #999999;  padding: 5px 6px 6px 6px;  height: 15px;  font-size: 12px;  width: 100%;  margin: 0px 0px 0px 0px;  height: 30px;  line-height: 30px;  text-transform: uppercase;  	}  .menudropdown .fourblocks .block{width:25%;margin:0px 0px 0px 0px;float:left}  .menudropdown .fourblocks .block:last-child{margin-right:0px}  .menudropdown .fourblocks{display:inline-block;margin-bottom:0px;width:980px}  .twoblocks img, .fourblocks img, .menudropdown .fourblocks img, .threeblocks img, .unevenblocks img, .unevenblocks2 img{display:block;width:100%;height:auto;}
<div id="menu">  <div id="holder">  <div class="menuaholder even"><a href="index.html" class="item">lighting</a><div class="menudropdown full">  <div class="fourblocks">  <div class="block">  <a href="wall-lights.html" class="menuitem" title="wall lights">wall lights</a>  <a href="spot-lights.html" class="menuitem" title="spot lights">spot lights</a>  <a href="pendant-lights.html" class="menuitem" title="pendant lights">pendant lights</a>  <a href="chandeliers.html" class="menuitem">chandeliers</a>  </div>  <div class="block">  <img src="http://lorempixel.com/200/200/" alt="link" title="link" width="200" height="200"></div>  <div class="block">  <img src="http://lorempixel.com/200/200/" alt="link" title="link" width="200" height="200"></div>  <div class="block forie">  <img src="http://lorempixel.com/200/200/" alt="link" title="link" width="200" height="200"></div>  </div>  </div></div>  </div>  </div>

here http://jsfiddle.net/s7yr93hj/ show you.

the panels have 10px padding around contents, @ bottom of panels, seem have gap larger 10px, remove.

my first thought images display:inline, styling includes display:block remove unwanted white space beneath them, problem still exists.

the outer div seems have height greater contents. drop down panels have varying heights, not want add height styling drop down panels

does have solution remove white space?

thank you.

browser renders white space on inline elements, quick fix set container font-size:0 , reset font-size:16px on items.

but in case remove .menudropdown .fourblocks {display:inline-block;} together, , set float:left if want.

updated demo: http://jsfiddle.net/s7yr93hj/1/


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -