My issue:
CSS must include 30 extra pixels on a certain div in order for it to be even, I want to know why. Also, I would rather it be an even number with the other two divs instead of x+30
.
My solution:
I simply add 30 pixels to the third div in order to make it even with the others.
Here is a jsFiddle.
Here is the three CSS I'm talking about:
.sidebar-top {
float: left;
border-top-right-radius: 12px;
border-top-left-radius: 12px;
border: 1px solid #ccc;
height: 32px;
width: 290px;
background: -webkit-linear-gradient(top, white 0%,#E8E8E8 100%);
background: linear-gradient(to bottom, white 0%,#E8E8E8 100%);
padding: 4px 15px;
}
.sidebar-middle {
float: left;
width: 290px;
padding: 5px 15px 0 15px;
border-right: 1px solid #d3d3d3;
border-left: 1px solid #d3d3d3;
background: #fff;
}
.sidebar-bottom {
background: #fff;
float: left;
height: 16px;
width: 320px;
border-bottom-right-radius: 12px;
border-bottom-left-radius: 12px;
border-right: 1px solid #d3d3d3;
border-left: 1px solid #d3d3d3;
border-bottom: 1px solid #d3d3d3;
margin-bottom: 15px;
}
My Question/tl;dr:
Why am I required to add 30 pixels to .sidebar-bottom
in order to make it even with the other divs?