Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inline #block #width #aligning #items
ADD COMMENT
Topic
Name
8+3 =