"Responsive Newsletter"
Bootstrap 4.1.1 Snippet by Poojathakur

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html> <head> <title> Newsletter </title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <!-- ===============================Newsletter Start=============================== --> <section class="newsletter"> <div class="container"> <div class="newsletter-inner"> <div class="news-left"> <h2>newsletter </h2> <p>keep up our latest news and events. subscribe our newsletter</p> </div> <div class="news-right"> <form id="subscribe" novalidate="true"> <input class="enteremail" name="EMAIL" id="subscribe-email" placeholder="Email" spellcheck="false" type="text"> <button type="submit" id="subscribe-button" class="subscribe-button color-bg"> Subscribe</button> </form> </div> </div> </div> </section> </body> </html>
.newsletter { background: #11385B; padding: 84px 0px; } .newsletter-inner { display: flex; align-items: center; justify-content: space-between; } .news-left h2 { font-family: 'Work Sans'; font-style: normal; font-weight: 600; font-size: 40px; line-height: 50px; text-transform: capitalize; color: #FFFFFF; margin-bottom: 13px; } .news-left p{ color: #ffff; } .news-right #subscribe { width: 657px; height: 67px; display: flex; align-items: center; background: #fff; border-radius: 5px; padding: 8px; justify-content: space-between; } .news-right #subscribe-email { width: 100%; border: none; } .news-right #subscribe-email { width: 100%; border: none; margin-left: 10px; } #subscribe-email:focus:focus-visible { border: 0px; box-shadow: none; outline: 0; } .news-right #subscribe-email::placeholder{ font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-size: 20px; line-height: 30px; text-transform: capitalize; color: #A5A4A4; } .news-right #subscribe-button { display: flex; align-items: center; justify-content: center; box-shadow: none; border: none; background: linear-gradient(91.54deg, #7C2221 2.9%, #BD3D3B 99.45%); font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-size: 20px; line-height: 30px; text-align: center; text-transform: capitalize; color: #FFFFFF; padding: 11px 30px; } .news-right #subscribe-button:hover{ background: #11385B; transition: transform .5s ease-in-out; } @media (max-width: 1199px) { .newsletter { padding: 30px 0px; } .news-right #subscribe { width: 100%; height: auto; } .newsletter-inner { flex-direction: column; } .news-left { width: 100%; text-align: center; } .news-right { width: 100%; justify-content: center; display: flex; } }

Related: See More


Questions / Comments: