<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <link rel="stylesheet" href="style.css" />
</head>

<body>

  <!-- cards -->
  <div class="horizontal__cards">
    <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQeAJcqYIoOt9alPKojKCuIMUuNvBmyIp4i0hkEJyyL7vleZ8ufU6lWV7LOXX_gEA6Mick&usqp=CAU" alt="image" class="horizontal__cards-image" />
    <h2 class="horizontal__cards-title">tata</h2>
    <h3 class="horizontal__cards-subtitle">tata tea</h3>
    <p class="">
      Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi neque.
    </p>
    <button class="horizontal__cards-btn">Click me</button>
  </div>
</body>

</html>
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-size: 1rem;
  font-family: "Times New Roman", Times, serif;
}

/* horizontal cards */
.horizontal__cards {
  height: auto;
  width: 10rem;
  border: 2px solid black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin: 4rem;
  padding: 0.4rem;
  border-radius: 0.3rem;
}
.horizontal__cards-image {
  height: 6rem;
  width: 10rem;
  border: 2px solid black;
  border-radius: 0.3rem;
}

.horizontal__cards-title {
  margin: 0.2rem;
  font-size: 1.5rem;
}
.horizontal__cards-subtitle {
  margin: 0.2rem;
  font-size: 1.2rem;
}
.horizontal__cards-paragraph {
  margin: 0.5rem;
  font-size: 1rem;
}

.horizontal__cards-btn {
  border: none;
  height: 2rem;
  width: 10rem;
  background-color: rgb(39, 190, 46);
  color: white;
  font-weight: 800;
  border-radius: 0.4rem;
  margin: 0.5rem;
  cursor: pointer;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.