Learning the basics of HTML and CSS. When I add a border to div column in red, div column in green goes below column red? Before: before adding border
After: after adding border
Tried removing padding or margins but the result is the same.
Below is CSS for column1 and column2.
 .details {
     float: left;
    width: 20%;
    overflow-wrap: break-word;
    background-color: lightcoral;
}
.workhistory {
    float: left;
    width: 80%;
}
 
     
    