Answers for "2 elements next to each other css"

CSS
1

css 2 <p> next to each other

p {
  float: left;
  width: 30%;
  margin: 0 1%;
}
Posted by: Guest on May-24-2020
1

multiple divs next to each other

.container {
  display: flex;
}

.item {
  background: #ce8888;
  flex-basis: 100px;
  height: 100px;
  margin: 5px;
}
Posted by: Guest on September-17-2021

Code answers related to "2 elements next to each other css"

Browse Popular Code Answers by Language