Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Responsive Newsletter"
Bootstrap 4.1.1 Snippet by
Poojathakur
4.1.1
Preview
HTML
CSS
View Full Screen
Fork
Fork this
650
 
0 Fav
Post to Facebook
Tweet this
<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; } }
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76