I'm trying to make two div's appear aside each other, but it just isn't working.
I'm trying to create a search bar and button that look joined together. I'm almost there, except that my button appears below, and not inline with the div.
Shouldn't this work? Where am I going wrong, and how do I get this right?
<!DOCTYPE html>
<html>
<head>
<title>Search Bar</title>
<style>
input {
border: none;
height: 18px;
outline: none;
padding: 5px;
}
button {
border: 1px solid rgba(0, 39, 59, 0.2);
margin: 0;
height: 28px;
padding: 0;
width:100px;
}
.outer {
width: 500px;
border: 1px solid #ccc;
padding: 10px;
}
.inner {
width: 395px;
border: 1px solid #ccc;
border-right:none;
}
.button {
display: inline-block;
float: right;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner"><input type="text"></div>
<div class="button"><button>Search</button></div>
</div>
</body>
</html>