Having a problem aligning my divs in a row. When there is two divs in a row, everything is fine, but wen only one div is in the row, this singular div sits funny. Any ideas? Thanks
My CSS:
div:nth-child(odd) {
display: inline;
float: left;
width: 45%;
}
div:nth-child(even) {
display: inline;
float: right;
width: 45%;
}
Here is the screenshot:
As you can see, Test 1 doesn't sit right. I want it to sit left.