Skip to content

Instantly share code, notes, and snippets.

@macikokoro
Created April 27, 2014 06:32
Show Gist options
  • Save macikokoro/11338938 to your computer and use it in GitHub Desktop.
Save macikokoro/11338938 to your computer and use it in GitHub Desktop.
CSS Code to display divs next to each other horizontally.
div {
height:100px;
width:100px;
display: inline-block;
}
#red {
background-color:#FF0000;
}
#blue {
background-color:#0000FF;
}
#yellow {
background-color:#E2BE22;
}
#green {
background-color:#008800;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment