Struggling to navigate through the intricacies of these code snippets
<!DOCTYPE html>
<html lang ="en">
<head>
<style type="text/css">
a{
text-decoration:none;
color:#333;
}
#pop{
width:557px;
height:400px;
background:#333;
left: 30%;
margin-top:80px;
z-index:999999;
box-shadow: 0px 0px 10px #000;
-webkit-box-shadow: 0px 0px 10px #000;
-moz-box-shadow: 0px 0px 10px #000;
border-radius: 5px;
-webkit-border-radius: 5px;
-o-border-radius: 5px;
}
#pop2{
width:557px;
height:400px;
background:#333;
left: 30%;
margin-top:80px;
z-index:999999;
box-shadow: 0px 0px 10px #000;
-webkit-box-shadow: 0px 0px 10px #000;
-moz-box-shadow: 0px 0px 10px #000;
border-radius: 5px;
-webkit-border-radius: 5px;
-o-border-radius: 5px;
}
.content {
width:100%;
background: #fff;
color:#666;
width:500px;
height: 300px;
overflow-y:scroll;
margin:auto;
padding:10px;
text-align:justify;
box-shadow: 0px 0px 10px #333 inset;
-webkit-box-shadow: 0px 0px 10px #333 inset;
-moz-box-shadow: 0px 0px 10px #333 inset;
}
#pop:target{
height:30px;
width:250px;
overflow:hidden;
position:fixed;
bottom:0;
left:236px;
}
#pop2:target{
height:30px;
width:250px;
overflow:hidden;
position:fixed;
bottom:0;
left:236px;
}
</style>
</head>
<a href="#" onclick="document.getElementById('pop').style.display='block';">
CLICK HERE
</a>
<div id="pop" style="display:none;">
<div class="buttons-bar">
Header
<a href="" onclick="document.getElementById('pop').style.display='none'">X</a>
<a href="#">></a>
<a href="#pop" >-</a>
</div>
<div class="content">
The standard Lorem Ipsum passage, used since the 1500s
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
</div>
</div>
<a href="#" onclick="document.getElementById('pop2').style.display='block';">
CLICK HERE
</a>
<div id="pop" style="display:none;">
<div class="buttons-bar">
Header
<a href="" onclick="document.getElementById('pop2').style.display='none'">X</a>
<a href="#">></a>
<a href="#pop2" >-</a>
</div>
<div class="content">
The standard Lorem Ipsum passage, used since the 1500s
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
</div>
</div>
</html>
The issue resides in using the ":target" pseudo-class, which restricts only one tab from being open at a time. Is there a way to implement multiple tabs that can be simultaneously opened and minimized? Suggestions, including JavaScript solutions, are greatly appreciated. Thank you