S
S
Sergey Izovsky2018-12-09 18:09:47
Images
Sergey Izovsky, 2018-12-09 18:09:47

How to put css rule in one horizontal line?

It is necessary to put an image and text on the right, text on the left of the image in a horizontal line, and vice versa,
what css rule to apply?

<section id="about">
       <div class="container">
           <div class="title">
          <h2>About us</h2>
           <p>Proin iaculis purus consequat sem cure.</p>
       </div>
       <div>
           <h3>JULY 2010<br>Our Humble Beginnings</h3>
           <p>Proin iaculis purus consequat sem 
              cure digni ssim. Donec porttitora 
              entum suscipit aenean rhoncus posuere 
              odio ticidunt. Proin iaculis purus consequat sem 
              cure digni ssim. Donec porttitora 
              entum suscipit. </p>
              <img src="img/about1.jpg" alt="ИЮЛЬ 2010">
       </div>
       </div>
   </section>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2018-12-09
@Taraflex

https://css-tricks.com/snippets/css/a-guide-to-flexbox/
read about align-items and justify-content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question