Can anyone help me solve a design issue I'm facing? I have a div with three floating buttons, but one of the buttons is taller than the others due to more content.
I'm looking for a way to ensure that all buttons are the same height as the tallest button. I attempted to use height: 100%;
, but it didn't produce the desired result.
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<style type="text/css">
.container {
width: 320px;
}
.container button {
float: left;
background: #FFFFFF;
border: 1px solid #CCCCCC;
width: 33.33%;
}
</style>
</head>
<body>
<div class="container">
<button>
<span class="big-text">Okay</span>
<span class="little-text">123</span>
</button>
<button>
<span class="big-text">Another Option</span>
<span class="little-text">456</span>
</button>
<button>
<span class="big-text">Nah!</span>
<span class="little-text">789</span>
</button>
</div>
</body>
</html>