Skip to content
Open
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
88 changes: 88 additions & 0 deletions index22.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
body {
max-width: 650px;
margin: auto;
padding: 0px;

}

.center::after

form {
max-width: 100px;
}
.container {
border-radius: 5px;
background-color: #76eb80;
padding: 20px;
}
input[type=submit]:hover {
background-color: #0CB41A;
}
input[type=submit] {
background-color: #020313;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-left:50px;
}
.details input{
margin-left: 30px;
border: 5px solid white;
}
.address input{
margin-left:25px;
border: 5px solid white;
}
.card-details input{
margin-left:10px;
border: 5px solid white;
}
.card-details,
.address {
border-style: double;
border-color:white;
}

div {
margin-left: 10px;
}

div.transbox {
margin: 105px;
background-color: rgba(255, 255, 255, 0.2);
border: 2px solid white;
padding: 20px;
border-radius: 10px;
}

.center {
display: flex;
justify-content: center;
align-items: center;
height: 60px;
}

label {
display: inline-block;
width: 150px;
text-align: left;
vertical-align:top;
}
.buttonHolder {
text-align: center;
font-size: 25px;
}

h2{
margin-left:10px;
}


@media (max-width: 600px) {
body{
width: 100%;
height: auto;
margin: right;
}
73 changes: 73 additions & 0 deletions index22.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html>
<head>


<title>PAYMENT FORM</title>
<link rel="stylesheet" href="index22.css">
</head>
<body>
<main>
<div class="container">
<!-- <form action="preview.cfm" method="post"> -->
<div class ="details">
<h2>Step 1: Your Details </h2>
<label for="Name"> Name:</label>
<input type="text" id="Name" name="Name"><br>
<br>
<label for="Email"> Email: </label>
<input type="text" id="Email" name="Email"><br>

<br>
<label for="Phone"> Phone: </label>
<input type="text" id="Phone" name="Phone"><br>
<br>
</div>

<div class ="address">
<h2>Step 2: Delivery address</h2>
<br>
<label for="Address"> Address: </label>
<input type="address" id="address" name="address"><br>

<br>
<label for="Post-code">Zipcode:</label>
<input type="text" id="Post-code" name="Post-code"><br>
<br>
<label for="Country">Country: </label>
<input type="text" id="Country" name="Country"><br>
<br>
</div>

<div class ="card-details">
<h2>Step 3: Card details</h2>
<label> Card type:</label><br>
<!-- <input type="text" id="Car_type" name="Card type"><br> -->
<br>
<input type="radio" id="visa" value="visa" name=user_card>
<label for="visa" class="light">Visa</label>
<input type="radio" id="amex" value="amex" name="user_card">
<label for="amex" class="light">AmEx</label>
<input type="radio" id="mastercard" value="mastercard" name="user_card">
<label for="mastercard" class="light">Mastercard</label><br>
<br>
<label for="ccnum" class= "cnum">Card number: </label>
<input type="text" id="ccnum" name="cardnumber" placeholder="1111-2222-3333-4444"><br>
<br>
<label for="cvv" class="cw">Security code:</label>

<input type="text" id="cvv" name="cvv" placeholder="352"><br>
<br>
<label for="cname" class="cnam">Name on Card:</label>
<input type="text" id="cname" name="cardname" placeholder="John More Doe"><br>
<br>
</div>

<div class="center">
<input type="submit" value="BUY IT" class="btn">
</div>
</form>

</main>
</body>
</html>