Really simple, im trying to make a bar graph. I have 10 items with 6.2% width and 2% padding either side apart from on the first and last. This should equal 100% bit it still pushes the last one over the edge, what have I done wrong?
* {
padding: 0px;
margin: 0px;
}
.graph {
width: 100%;
height: 50px;
background-color: #eaeaea;
}
.weekbar {
width: 6.4%;
margin-left: 2%;
margin-right: 2%;
display: inline-block;
position: relative;
background-color: #aeaeae;
vertical-align: baseline;
}
.start {
margin-left: 0px;
}
.end {
margin-right: 0px;
}