Hello friends, today we will be going to create Responsive Contact Us Page Design using Html CSS . I have posted many videos and articles before related to the JavaScript project, now this the something new that we are going to build.
Demo Tutorial of Responsive Contact Us Page Design using Html CSS
As you have seen on the given demo tutorial of How to create Responsive Contact Us Page Design using Html CSS ,
If you are feeling bored watching the given demo tutorial of How to create Responsive Contact Us Page Design using Html CSS then you can copy or download the given codes below:
Responsive Contact Us Page Design using Html CSS | Free Source Code
To create this program (Contact Us Page). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste the following codes in your file.
In the first place, make a HTML document with the name of index.html and glue the given codes in your HTML record. Keep in mind, you've to make a document with .html extension.
$lt;!DOCTYPE html$gt;
$lt;html lang="en"$gt;
$lt;head$gt;
$lt;meta charset="UTF-8"$gt;
$lt;meta http-equiv="X-UA-Compatible" content="IE=edge"$gt;
$lt;meta name="viewport" content="width=device-width, initial-scale=1.0"$gt;
$lt;link rel="stylesheet" href="style.css"$gt;
$lt;title$gt;Get in Touch$lt;/title$gt;
$lt;!-- S-Tech04 --$gt;
$lt;/head$gt;
$lt;body$gt;
$lt;div class="container"$gt;
$lt;h2 class="title"$gt;Get In Touch$lt;/h2$gt;
$lt;form action="#"$gt;
$lt;div class="input-field username"$gt;
$lt;input type="text" id="username" name="username" placeholder="Username"$gt;
$lt;/div$gt;
$lt;div class="input-field subject"$gt;
$lt;input type="text" id="subject" name="subject" placeholder="Subject"$gt;
$lt;/div$gt;
$lt;div class="input-field"$gt;
$lt;input type="email" id="email" name="email" placeholder="Email"$gt;
$lt;/div$gt;
$lt;div class="input-field"$gt;
$lt;textarea name="message" class="massage" placeholder="Type message here"$gt;$lt;/textarea$gt;
$lt;/div$gt;
$lt;button type="submit" class="btn"$gt;SEND MESSAGE$lt;/button$gt;
$lt;/form$gt;
$lt;/div$gt;
$lt;/body$gt;
$lt;/html$gt;
Second, make a CSS record with the name of style.css and glue the given codes in your CSS document. Keep in mind, you've to make a record with .css extension.
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Rubik', sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100%;
background: #11141b;
}
.container
{
position: relative;
padding: 0 200px;
width: 100%;
height: 100%;
}
.container .title
{
position: relative;
width: 100%;
text-align: center;
font-size: 40px;
font-weight: 700;
text-transform: capitalize;
line-height: 1.3;
color: #fff;
padding-bottom: 20px;
}
.container .title::before
{
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
max-width: 300px;
margin: 0 auto;
background: -webkit-linear-gradient(left,rgba(0,0,0,0),rgb(165,165,165),rgba(0,0,0,0));
}
.container form
{
margin-top: 60px;
margin-left: -15px;
margin-right: -15px;
display: flex;
flex-wrap: wrap;
}
.container form input,
.container form textarea
{
width: 100%;
padding: 15px 0;
color: #fff;
background: transparent;
border: none;
border-bottom: 1px solid #353535;
outline: none;
font-size: 14px;
font-weight: 400;
}
form .input-field
{
flex: 0 0 100%;
max-width: 100%;
margin-bottom: 25px;
}
form input::placeholder,
form textarea::placeholder
{
font-size: 15px;
font-weight: 400;
}
form .input-field.username
{
flex: 0 0 50%;
max-width: 50%;
padding-right: 15px;
}
form .input-field.subject
{
flex: 0 0 50%;
max-width: 50%;
padding-left: 15px;
}
form .input-field textarea
{
height: 120px;
resize: vertical;
}
form .btn
{
position: relative;
display: inline-block;
padding: 15px;
font-size: 14px;
letter-spacing: 1px;
color: #fff;
background: transparent;
border: none;
outline: none;
cursor: pointer;
text-transform: uppercase;
}
form .btn::before
{
content: '';
position: absolute;
width: 50%;
height: 100%;
background: rgba(255,255,255,0.07);
top: 0;
left: 0;
transition: all 500ms ease;
}
form .btn:hover::before
{
width: 100%;
}
@media(max-width: 1125px){
.container
{
padding: 0 100px;
}
}
@media(max-width: 945px){
.container
{
padding: 0 50px;
}
form .input-field.username,
form .input-field.subject
{
flex: 0 0 100%;
max-width: 100%;
padding: 0;
}
}
That’s all, now you’ve successfully created a program to How to create Responsive Contact Us Page Design using Html CSS. If your code doesn’t work or you’ve faced any error/problem, please download the source code files from the given download button. It’s free and a .zip file will be downloaded then you’ve to extract it.
Click on the following download button to download all source code files.
Post a Comment
How can I help you