Change ul
padding:5px
to padding:0px
to avoid space under li
.
ul {display: inline-block; background:#DDD; padding:0px;white-space: nowrap; margin:50px 200px;}
You can align the li
using vertical-align: top;
.with_overflow li:first-child {position: relative; overflow: hidden;vertical-align: top; }
.with_overflow form {position: absolute; opacity: 0;}
.with_overflow iframe {display:none}