Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : contact form layout response issue #37

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
<section class="contact" id="contact">
<h2 class="text-center" >Contact</h2>
<div class="form">
<input type="text" name="name" id="name" placeholder="Enter your Name">
<input type="number" name="phone" id="name" placeholder="Enter your Phone">
<input type="email" name="email" id="name" placeholder="Enter your Email">
<input type="text" name="name" class="name" placeholder="Enter your Name">
<input type="number" name="phone" class="name" placeholder="Enter your Phone">
<input type="email" name="email" class="name" placeholder="Enter your Email">
<button class="btn submit-btn">Submit</button>
</div>
</section>
Expand Down
21 changes: 20 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ html{
height: 120%;
}

#name{
.name{
border: 2px solid black;
padding: 5px 10px;
}
Expand All @@ -359,11 +359,16 @@ html{
.form{
max-width: 500px;
margin: auto;
display: flex;
flex-direction: column;
align-items: center;

}

.form input{
width: 100%;
font-size: 20px;
background-color: rgba(0, 0, 0, 0.30);
border: 2px solid grey;
border-radius: 6px;
margin: 14px 0px;
Expand Down Expand Up @@ -448,6 +453,20 @@ html{
padding: 0px;
text-align: center;
}
.text-center{
font-size: 20px;
}
.form input{
width: 300px;
height: 22px;
margin: 6px;
font-size: 9px;
}
.submit-btn{
padding: 5px 10px;
font-size: 12px;
margin: 12px;
}
}

/* Footer */
Expand Down