windows 10 pro office 2019 pro office 365 pro windows 10 home windows 10 enterprise office 2019 home and business office 2016 pro windows 10 education visio 2019 microsoft project 2019 microsoft project 2016 visio professional 2016 windows server 2012 windows server 2016 windows server 2019 Betriebssysteme office software windows server https://softhier.com/ instagram takipçi instagram beğeni instagram görüntüleme instagram otomatik beğeni facebook beğeni facebook sayfa beğenisi facebook takipçi twitter takipçi twitter beğeni twitter retweet youtube izlenme youtube abone instagram

Lining up header, paragraph and image

Asked By: Anonymous

Ideal layout
I’m a beginner so having some trouble learning to get things where I want them.

I want to move the paragraph under the header with the top of it lining up with the image and header.

I also want to have to scroll down to see the next section (hydro stuff) instead of it being next to the first section (wind stuff)

I hope that makes sense, TIA.

_x000D_

_x000D_

.re-format {
  display: inline-flex;
}

.re-format img {
  padding: 50px 0 0 50px;
  width: 200px;
  height: 300px;
}

.re-format h3 {
  color: #474747;
  text-shadow: none;
  padding: 40px;
}

.re-format p {
  font-family: candara;
  color: #474747;
  font-size: 20px;
}

_x000D_

<div class="re-format">
  <img src="images/wturbine.jpeg">
  <h3>Wind Energy</h3>
  <p>para about wind <br>para about company<br> para about some other stuff</p>

  <img src="images/dam2.jpg">
  <h3>Hydro Energy</h3>
  <p>para about hydro <br>para about company<br> para about some other stuff</p>
</div>

_x000D_

_x000D_

x000D


Solution

Answered By: Anonymous

Ok your desired result image cleared things up.

Try this. Hope you will follow the comments to understand what really happens.

_x000D_

_x000D_

/* display subsection as a flex box; default direction is row */
.subsection {
    display: flex;
}
.subsection-content {
    text-align: left;
    /* add a small padding to the left */
    padding-left: 10px;
}

.re-format {
  display: inline-flex;
  flex-direction: column
}

.re-format img {
  padding: 50px 0 0 50px;
  width: 200px;
  height: 300px;
}

.re-format h3 {
  color: #474747;
  text-shadow: none;
  padding: 40px;
  padding-left: 0px;
  text-align: left;
}

.re-format p {
  font-family: candara;
  color: #474747;
  font-size: 20px;
}

_x000D_

<div class="re-format">
  <div class="subsection">
    <!-- bring the image out of the subsection content so it can displayed independent of the right column -->
    <img src="images/wturbine.jpeg">
    <div class="subsection-content">
      <h3>Wind Energy</h3>
      <p>para about wind <br>para about company<br> para about some other stuff</p>
    </div>
  </div>  
  <div class="subsection">
    <!-- bring the image out of the subsection content so it can displayed independent of the right column -->
    <img src="images/dam2.jpg">
    <div class="subsection-content">
      <h3>Hydro Energy</h3>
      <p>para about hydro <br>para about company<br> para about some other stuff</p>
    </div>
  </div>
</div>

_x000D_

_x000D_

x000D

techinplanet staff


Windows 10 Kaufen Windows 10 Pro Office 2019 Kaufen Office 365 Lizenz Windows 10 Home Lizenz Office 2019 Home Business Kaufen windows office 365 satın al follower kaufen instagram follower kaufen porno