I've tried several things like making the divs smaller (even very tiny to see if they go next to each other) and experimenting with inline-block/float left and right but I can't get my divs side by side, below is the CSS please help
#ContentHome {
clear: both;
margin-left: 0;
width: 79%;
display: inline-block;
vertical-align: top;
border: thin solid #FFF;
color: #000000;
}
#Side {
clear: both;
margin-left: 0;
width: 20%;
display: inline-block;
vertical-align: top;
font-family: "Myriad Pro", Calibri;
font-size: 16px;
border: thin solid #FFF;
color: #000000;
}
See the updated css below. What i have done is that, I removed both the clear:both; and display:inline-block; from your css and added float:left; to both of the <div>s.
CSS
#ContentHome {
margin-left: 0;
width: 79%;
vertical-align: top;
border: thin solid #FFF;
color: #000000;
float: left;
}
#Side {
margin-left: 0;
width: 20%;
vertical-align: top;
font-family:"Myriad Pro", Calibri;
font-size: 16px;
border: thin solid #FFF;
color: #000000;
float: left;
}
try removing clear:both from the divs you want to go side by side.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With