Skip to content
  • Home
  • Blog
  • Html & Css

    Top Categories

    Header & Footer
    Naviation Bar
    Unique Menu
    Card Designs
    Sections
    Animations
    Animated Buttons
    Landing Pages
    Sliders

    HTML Forms

    Login Form
    Sign up / Registration Form
    Contact Form

    Languages

    HTML
    CSS
    JAVASCRIPT
    PHP
    Avalible soon
  • Css Shadows
  • Color Picker
  • Write for us
WhatsApp Image 2022-11-09 at 1.57.47 AM
Search
Close
  • Card Design, Html and CSS

Design an email newsletter in Html and CSS with code

  • admin
  • September 16, 2021
Newsletter

A website newsletter is a very important component of any website and we will design an email newsletter. It indicates that people are interested in your business and that’s why they are following you by putting your email. In the last lesson, we were discussing how to create a Great email newsletter . Now, let us see how to create a website newsletter using Html and CSS only.

Design an email newsletter

A website newsletter is very important for the progress of the website. The website can grow without it but it will take a lot of time to grow. By using this method you will be able to grow your business easily and fast. So, you need to create it if you have any type of website to grow your business in a short time. If you have a website in Html and CSS then you can create it by following our below steps. But first, let’s see something about its content.

It has a gradient background and it is very simple to achieve it using Html and CSS. Then it has a box at the center created using the center and div property. This box has a shadow which is also created using CSS. Then it has a heading at the top “Monthly newsletter”. Below this, it has a description related to the website newsletter and the reason to join the website or follow the website.

Capture

Then it has a field for entering the email. A field is a part where you can input your data into the form or any other part of the website. So, you can enter your email here for a subscription. We can create it using Html and CSS. If you like the design or idea then you can also create it by following our 3 simple steps.

You might like it:

  • Great email newsletter design
  • Product page design
  • Flip page in HTML, css and javascript

How to design an email newsletter?

Download an IDE:

You must have any type of IDE for writing the code of Html and CSS. You can start with brackets, vs code, notepad, or anyone else related to your comfort.

Source code of Html:

For creating the newsletter you have to create an Html file so that you can write the content using Html. Then the Html code is given below and you have to copy-paste this code into your Html file.

Html Code
XHTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Newsletter - Fantacy Design</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
  </head>
  <body>
    <div class="newsletter">
      <h1>
        Weekly
        <span>Newsletter</span>
      </h1>
 
      <p>Lorem ipsum dolor sit amet, natus sequi maxime assumenda.</p>
 
      <div class="txtb">
        <input type="text" placeholder="Enter Your Email Address">
        <button type="button"><i class="fas fa-arrow-right"></i></button>
 
      </div>
    </div>
  </body>
</html>

Source code of CSS:

So, create a CSS file in the same folder in which the Html file was saved and then you have to copy-paste this given code into your file.

CSS Code
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@600&family=Montserrat:ital,wght@0,600;1,800&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}
 
body{
  background: #786fa6;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.newsletter{
  background: linear-gradient(125deg,#778beb,#f8a5c2);
  width: 500px;
  padding: 60px;
  text-align: center;
  box-shadow: 0 0 20px #00000060;
}
 
.newsletter h1{
  text-transform: uppercase;
  color: #fff;
  font-size: 48px;
  line-height: 50px;
  font-weight: bold;
font-family: 'Montserrat', sans-serif;
}
 
.newsletter h1 span{
  display: block;
  font-size: 38px;
  font-family: 'Montserrat', sans-serif;
}
 
.newsletter p{
  color: #fff;
  font-size: 14px;
  margin: 10px 0;
}
 
.txtb{
  width: 100%;
  height: 70px;
  background: #f1f1f199;
  border-radius: 40px;
  position: relative;
  margin-top: 40px;
}
 
.txtb input{
  width: 100%;
  height: 70px;
  border-radius: 40px;
  border: 0;
  background: none;
  padding: 0 30px;
  outline: none;
  font-size: 15px;
  padding-right: 80px;
}
 
.txtb button{
  background: #574b90;
  border: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  top: 10px;
  outline: none;
  cursor: pointer;
  color: #fff;
  transition: 0.3s linear;
}
 
.txtb button:hover{
  opacity: .5;
}

Therefore by following these steps you can create a responsive newsletter for your website. If you have any errors then we have a solution for that.

Download Source code:

Its source code is given below. Just click on the download button and your file will start downloading within 30 seconds.

Task:

Email newsletters are the most essential part of the website. You can use it at multiple places on the website pages. If you have a basic knowledge of Html and CSS then create a footer. Then add this email newsletter inside the footer of the website. It is mostly used inside the footer area. It is also used in the sidebar of the website. It helps the admin to collect the emails of the customers easily and retarget them in the future,

If you have any questions then ask below in the comment section.

Thanks for reading this article.

Download Source Code
PrevPreviousGreat email newsletter design in Html and CSS with code
NextFooter design using Html and CSS with source codeNext
Latest Post
How Analytics Inform User-Centric Web Design

How Analytics Inform User-Centric Web Design

The Impact of Machine Learning on Web Development

The Impact of Machine Learning on Web Development

Color Psychology in Landing Page Design: Choosing Palettes that Elicit Action and Emotion

Color Psychology in Landing Page Design: Choosing Palettes that Elicit Action and Emotion

The Power of Microinteractions: Enhancing User Engagement Through Small Gestures

The Power of Microinteractions: Enhancing User Engagement Through Small Gestures

The Importance of User Experience (UX) Design in Web Development

The Importance of User Experience (UX) Design in Web Development

Beginner’s Guide to Responsive Web Design

Beginner’s Guide to Responsive Web Design

Categories
Animations 25
Buttons animation 8
Calculator 1
Card Design 19
Contact Forms 10
Design 19

Leave a Comment Cancel reply

Related Post
How to Improve Website Performance with Optimized HTML, CSS, and JavaScript
Html and CSS

How to Improve Website Performance with Optimized HTML, CSS, and JavaScript

HTML, CSS, and JavaScript: A Dynamic Trio for Creating Responsive Websites
Html and CSS JavaScript

HTML, CSS, and JavaScript: A Dynamic Trio for Creating Responsive Websites

New Website Preloader with source code
Design

New Website Preloader with source code

About Us

Fantacy Designs  Provides Premium Html  Css and JS Designs with source code for free. 

Categories

  • Html
  • Css
  • JavaScript
  • Web Design

Quick Links

  • Contact Us
  • Write For Us
  • Privacy Policy
  • Terms and Conditions

Contact Info

  • fantacydesignss@gmail.com
  • +92333000000
  • Mansehra, Pakistan

Subscribe, For Weekly Updates

Copyright 2025 - FantacyDesigns - All Rights Reserved