In my current situation, I have two elements positioned side by side with dynamic widths based on their content. The element on the right needs to fill up as much vertical space as possible without a set width.
I am looking for an alternative to flexbox due to client complaints about browser compatibility issues, especially in Internet Explorer.
Below is a sample scenario where I want to achieve this layout effect:
.container {
background-color: tomato;
padding: 10px;
overflow: auto;
width: 700px;
}
nav {
float: left;
margin-right: 10px;
}
nav ul {
background-color: blue;
}
nav ul li {
display: inline;
padding: 20px;
}
form {
float: left;
padding: 15px;
}
<div class="container">
<nav>
<ul>
<li>Home</li>
<li>About</li>
<li>Blog</li>
<li>Contact</li>
<ul>
</nav>
<form>
<input type="text" placeholder="Search">
<button type="submit">Submit</button>
</form>
</div>