A Pen by Matt Bengston

undefined

Forked from Joe's Pen RRbwKx.

Thumbnail
This awesome code was written by aesinv, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright aesinv ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Matt Bengston</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <ul>
  <li class="flex">
    <div class="item item-left">
        <div>
          <a href>
            <img src="http://www.bannerpowersolutions.com/wp-content/uploads/banner-electric.png">
          </a>
      </div>
    </div>
    <div class="item item-right">
      <div>foobarred<div>
     </div>
  </li>
  <li class="flex">
    <div class="item item-left">
      <div>
        <a href>
          <img src="http://www.bannerpowersolutions.com/wp-content/uploads/banner-electric.png">
        </a>
      </div>
    </div>
    <div class="item item-right">
      <div>gaztron<div>
    </div>
  </li>
</ul>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/aesinv/a-pen-by-matt-bengston-pbzqBw */
ul {
  display: block;
  width: 80%;
  margin: 20px;
}

li {
  width: 100%;
  background: #efefef;
  margin: 0 0 10px;
}

.flex {
  display: flex;
  align-items: center;
}
.flex .item-left {
  width: 10%;
}
.flex .item-right {
  width: 90%;
}
.flex .item > div {
  width: 100%;
}
.flex .item img {
  max-width: 100%;
}

Comments