Make a invitation card using HTML/CSS/JAVASCRIPT



Hey guys once again welcome to the Decoders blog, I hope you all are doing well and today I'm present with another astonishing project(using HTML/CSS/JAVASCRIPT). The given code will help you to built it, so just follow the codes and make your own invitation card easily  , and enjoy it with your friends 

Given below is a glimpse of how your card is gonna look like!!!!


 

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="invite.js"></script>
</head>

<style>
html {
background-image: url(https://i.pinimg.com/originals/be/cb/ca/becbca09cc81c9e
        cd1ce133c836b3f25.gif);
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;

}


#name {
border-bottom: 1px solid rgb(139, 130, 130);
border-radius: 5px;
position: relative;
display: block;
left: 15%;
top: 140px;
}

#DOB {
border-bottom: 1px solid rgb(139, 130, 130);
border-radius: 5px;
position: relative;
display: block;
left: 15%;
top: 180px;
}

#email {
border-bottom: 1px solid rgb(139, 130, 130);
border-radius: 5px;
position: relative;
display: block;
left: 19%;
top: 220px;
}

.container {
border: 2px solid white;
width: 43%;
position: absolute;
top: 86px;
left: 21%;
height: 401px;
border-radius: 20px
}

#name1 {
display: inline;
position: absolute;
top: 32%;
left: 23px;
color: white;
}

#dob1 {
display: inline;
position: absolute;
top: 49%;
left: 29px;
color: white;
}

#email1 {
display: inline;
position: absolute;
top: 66%;
left: 28px;
color: white;
}

#submit {
position: absolute;
top: 75%;
left: 57%;
border-radius: 5px;
}
#invite {
position: relative;
font-size: 43px;
color: white;
display: inline;
left: 21%;
top: 124px;
}
</style>

<body>
<p id="invite" >INVITATION</p>
<div class="container">
<form action="#">
<input type="text" id="name">
<p id="name1">NAME</p>
<input type="datetime" id="DOB">
<p id="dob1">DOB</p>
<input type="email" id="email">
<p id="email1">EMAIL ID</p>

</form>
</div>
<button type="button" id="submit" onclick="myfunc()">SUBMIT</button>
<script>
function myfunc() {
alert("INVITATION: \nITS A MATTER OF IMMENSE CONCERN AND GRIEF THAT
            \nYOU ARE INVITED ON MY BIRTHDAY ON DD/MM/YYYY \n AT MY HOME ON 11AM")

}
</script>
</body>

</html>

Comments

Popular Posts