Answers for "inline block and 50% width not aligning items"

CSS
0

inline block and 50% width not aligning items

body{
  margin: 0; /* removing the default body margin */
}

div{
  display: inline-block;
  width: 50%;
}

.left{
  background-color: aqua;
}

.right{
  background-color: gold;
}
Posted by: Guest on September-03-2020

Browse Popular Code Answers by Language