Hello coders, Today in this blog you will learn how to create a Responsive landing page with simple but awesome UI by using HTML and CSS. Earlier, you learned to create a custom radio music player in javascript.

A landing page is a website having a single page containing all the important information. Building a landing page is one of the most important steps for sharing personal information or business details. Today we are going to create a very clean designed eye-catching landing page. The design in the above image is exactly the same as we are going to create today. So, without doing it late let’s move toward building a landing page.

 

First, let me describe the structure and design. The whole contents in the landing page are wrapped inside a single div named ‘container’. The container is divided into two parts; i.e. vertical text area and the main contents area. You can see a big vertical text on the left side. The text is rotated and placed by using the following CSS property.

.container .left p {

  -webkit-transformtranslate(0375pxrotate(270deg);

          transformtranslate(0375pxrotate(270deg);

}

After that, there is a navigation bar containing the logo and some links. In the hero section, the is a heading and subheading. At the right side of the heading, there is a floating circle that is created using the “::before” pseudo-element.

 

At the bottom on the right side, there is a text having two words. Among them, the word ‘let’ is created using the "::before" pseudo-element. It has a transparent background and a border of 1px. To create a border in the text you have to use the following CSS property:-

.yourText::before{

  -webkit-text-stroke-width1px;

  -webkit-text-stroke-color#666;

 }

 

If you’re feeling difficult to understand what I am saying. You can watch the video given below.

Video of how to make a responsive landing page

As you’ve seen in the above video, all the landing page design is made with pure CSS. You can also create this landing although you are a beginner. If you like this landing page and want to get source code, you can easily get it. Just scroll down your page.

Landing Page in HTML and CSS [Source Codes]

 

To create this landing page you need to create two files i.e. one HTML file and one CSS file inside the same folder. After creating files just paste the below codes in your file. First, paste the below code into your index.html file.

index.html

Now paste the below CSS code into your style.css file.

style.css

That’s all, now you’ve successfully created your own responsive landing page using HTML & CSS. If your code does not work or you’ve faced any errors/problems then please comment down your queries. I’m always ready to help you.

Thank You :)

 

Post a Comment

Previous Post Next Post