JSFiddle - React, Tailwind, and code Playground

by Milan Karagunović

HTML

<div class="content">
      <div class="cv">
        <p>Some text</p>
        <p>Some more text</p>
        <p>etc etc</p>
        <p><a href="mailto:test@example.com">test@example.com</a></p>
        <p>Download
          <a href="example-eng.pdf" class="p-link">eng</a>
          <a href="example-deu.pdf" class="p-link">deu</a>
        </p>
      </div>
      <div class="photo">
        <img src="image/dummy.png" alt="dummy">
      </div>
    </div>

CSS

body {
    background: #eee;
    padding: 20px;
    letter-spacing: 1px;
}
.content {
    background: #fefefe;
    width: 600px;
    margin: 20px auto 0; /* margins - top | left/right | bottom */
    padding: 10px;
    text-align: center;
    border: 1px dashed #bbb;
}
.cv {
    display: inline-block;
    margin: 0 20px;
}
.photo {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 200px;
}
.photo:after {
    background: rgba(100,100,100,0.5);
    position: absolute;
    content: "Image description";
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding: 10px;
    color: #fff;
    opacity: 0;
    transition: all 0.4s linear;
    box-sizing: border-box;
}
.photo:hover.photo:after {
    height: 100%;
    opacity: 1;
}
.photo img {
    width: 100%;
    height: 100%;
}
p {
    text-align: left;
    line-height: 23px; /* set by your needs */
}
.p-link {
    margin-left: 0;
}