mercredi 28 mars 2018

How put two p element next to each other [duplicate]

This question already has an answer here:

How can i put two p elements next to each other,

Using inline method every line in p element gets serrated so what is the correct way? "i can't find any question on it" here is my code on this

body {
  margin: 0;
  padding: 0;
}

.div1 {
  width: 100%
}

p {
  margin: 0;
}

.p1 {
  width: 50%;
  background: rgb(136, 224, 220);
}

.p2 {
  width: 50%;
  background: rgb(114, 235, 131);
}
<div class="div1">
  <p class="p1">
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
    survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing
    software like Aldus PageMaker including versions of Lorem Ipsum.
  </p>
  <p class="p2">
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
    survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing
    software like Aldus PageMaker including versions of Lorem Ipsum.
  </p>
</div>



Aucun commentaire:

Enregistrer un commentaire