Responsive Advert

What is a responsive advert How do you make a responsive advert? This script and codes were developed by James Zedd on 15 December 2021, Wednesday.

How do I make an responsive advert?
  1. Responsive Advert Previews
  2. Responsive Advert HTML Codes
  3. Responsive Advert CSS Codes
Responsive Advert Previews

Responsive Advert HTML Codes

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>Responsive Advert</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>
  <div class="cta-container">
  <div class="main-img-container left">
  <img src="https://cdn6.bigcommerce.com/s-vscw0a/product_images/uploaded_images/temptooth-product.jpg?t=1489085094" alt="temptooth package" class="main-img" />
  </div>
  <div class="main-content-container">
    <img src="https://cdn6.bigcommerce.com/s-vscw0a/product_images/uploaded_images/mb-g.jpg?t=1489085093" alt="guarantee" class="left" />
    <h4 class="cta-header">Risk-free, money back guarantee!</h4>
    <p class="p-standard">
      If you are not completely satisfied with temptooth, return it within 14 days from purchase for a full refund (less shipping).
    </p>
    <p class="p-blue">
      Temptooth is a fake tooth solution used by tens of thousands to temporarily postpone the tooth implant cost. 
    </p>
    <img src="https://cdn6.bigcommerce.com/s-vscw0a/product_images/uploaded_images/tools.jpg?t=1489085094" alt="dentistry" class="left" />
    <p class="p-green">
      Free dental tools consisting of tweezers, mirror and scraper, made of high grade German stainless steel are included. This is our gift to our customers for purchasing.
    </p>
    <div class="price-container">
      <p class="cta-price">
        $29.95
      </p>
      <a class="btn-cta" href="http://temptooth.com/categories/">Buy Now</a>
    </div>
  </div>
</div>
  
  
</body>
</html>

Responsive Advert CSS Codes

h4, p, a {
  font-family: 'raleway', sans-serif;
}

.cta-container {
  border: 3px solid blue;
  padding: 20px;
  min-height: 480px;
  max-width: 1100px;
  margin: 0 auto;
}

.left {
  float: left;
  margin-right: 12px;
}

.right {
  display: block;
  text-align: right;
}

h4 {
  font-size: 24px;
  font-weight: 700;
  color: #009438;
}

.p-standard {
  font-size: 14px;
  font-weight: 700;
  color: #717075;
  line-height: 24px;
}

.p-blue {
  font-size: 14px;
  font-weight: 700;
  color: #4c69e9;
  line-height: 24px;
}

.p-green {
  font-size: 14px;
  font-weight: 700;
  color: #009438;
  line-height: 24px;
}

.price-container {
  text-align: right;
  margin-bottom: 30px;
}

.cta-price {
  font-family: 'Lato', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #f3390a;
  font-style: italic;
}

.btn-cta {
  padding: 20px 70px;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
  color: #ffffff !important;
  text-transform: uppercase;
  background: rgba(248,80,50,1);
  max-width: 315px;
}

@media (max-width: 991px) {
  
  .main-img-container {
    float: none;
    margin-right: 0;
    text-align: center;
  }
  
}

@media (max-width: 767px) {
  
  .cta-container {
    text-align: center;
  }
  
  .main-img-container {
    margin-bottom: 24px;
  }
  
  .left {
    float: none;
    margin-right: 0;
  }
  
  .price-container {
    text-align: center;
  }
  
  .btn-cta {
    font-size: 20px;
  }
  
}
Do you want hide your ip address?Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup.