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

initial commit #69

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
33 changes: 33 additions & 0 deletions expandable-div/day1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
body{
background-color: #0ca9 ;
width: 100%;
height: 50vh;
display: flex;
justify-content: center;
align-items: center;
padding: 5rem;
animation: smooth;

}

.heading,.btmdiv{
border: 2px solid black ;
width: 50%;
height: 50%;
background: #fff;
display: flex;
justify-content: center;
align-items: center;

}
.maintab{
width: 50rem;
}
.heading{

justify-content: space-between ;
}
.btmdiv{
border: none;
background: transparent;
}
47 changes: 47 additions & 0 deletions expandable-div/day1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="day1.css">
<title>Document</title>
</head>

<body>
<div class="maintab">
<div class="heading">

<h3>Lorem ipsum lit.</h3>
<div class="btn">✚</div>
</div>

<div class="btmdiv">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quos tempora ab, nobis totam numquam accusamus
debitis quod omnis voluptatum magnam veritatis aliquam expedita, quaerat est?
</div>

</div>
<script>
let btn = document.querySelector('.btn');
let para = document.querySelector('.btmdiv');
btn.addEventListener("click",function(e)
{
if(para.style.display != "none"){
para.style.display="none";
}
else{
para.style.display="block";
}
}
);




</script>


</body>

</html>