I have the following code: http://jsfiddle.net/yxxhj33x/
As you can see, I have the .links
element followed by a input[type='text']
element. Unfortunately, there is a margin above the input, which won't go away when I add:
.links {
display: inline-block;
border: 1px solid black;
width: 100%;
font-size: 0;
white-space: nowrap;
overflow-x: auto;
}
.links a {
background: #FFF;
display: inline-block;
min-width: 100px;
width: 25%;
text-align: center;
border-right: 1px black solid;
height: 50px;
font-size: 16px;
}
<div class='links'>
<a href='#'>Blah</a>
<a href='#'>Blah</a>
<a href='#'>Blah</a>
<a href='#'>Blah</a>
</div>
<input type='text'>
input[type='text'] {
margin: 0;
}
How do I fix this?