I am struggling to create a responsive box with a search feature for a mobile website. My plan is to incorporate jquery functions into the site, so I need to design an outer container that will house a distinct logo and search bar. However, when I test this code, the height of the search box seems to be causing issues. I want the height to adjust responsively, rather than remaining static.
Sample HTML:
<head>
<meta charset="utf-8">
</head>
<body>
<style type="text/css">
*{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.outer-top{
border: 1px solid black;
}
.logo {
border:1px solid black;
text-align:center;
float:left;
width:25%;
height: 15%;
}
.searchbar {
border:1px solid black;
text-align:center;
float:left;
width:75%;
height:15%;
}
</style>
<div class="outer-top">
<div class="logo">
<p>My Unique Logo</p>
</div>
<div class="searchbar">
<input type="text" name="search"><input type="submit" value="Search" class="sbutton">
</div>
</div>
</body>
</html>