I forgot to add <!DOCTYPE html>
to some projects so I went back and added it. This ruined the alignment/height of a few elements but I was able to fix it by adding in px
or %
where it was missing.
However, in one of my projects this didn't fix the problem. Here's the fiddle. It's the button heights which should fill the entire container. It works great without <!DOCTYPE html>
. I have looked at other similar questions but the advice given (add in missing px
or %
) hasn't worked.
Here's the CSS for the buttons:
button {
padding: 0px !important;
margin: 0px !important;
height: 15% !important;
width: 25%;
display: block;
float: left;
background-color: #F8B8B8;
border: 1px solid #fee;
border-bottom: none;
border-left: none;
}