Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html>
<head>
  <title>Mitosis-Interactivity</title>
  <meta charset="utf-8"/>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  <link href='https://fonts.googleapis.com/css?family=Roboto:300,400,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="style.css">
	<div id="headInfo">
<header class="container">
  <div class="row">
    <h1 class="col-sm-3">Interactive Website</h1>
    <nav class="col-sm-11 text-right">
      <a class="btn btn-secondary" href="index.html" role="button">Start</a>
      <a class="btn btn-secondary" href="main.html" role="button">Interactive Activity</a>
      <a class="btn btn-secondary" href="#" role="button">Quiz</a>
      <a class="btn btn-secondary" href="about.html" role="button">About</a>
    </nav>
  </div>
</header>
</div>
</head>

<body>

<div id="rcorners">
  <div class="gallery">

      <figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc1()" style="display: flex; justify-content: center; top:50%;"><a class = "intButton" style="">Mitosis int</a>
  				<span class="popuptext" id="intPopup1">Popup Interactive</span>
				</div>
        <div class="vl" style="border-left: 6px solid red; height:100px; top:10%;"></div>   
        </div>

				<div class="popup" onclick="myFunction()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup">Popup</span>
				</div>
      </figure>
<figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc2()" style="display: flex; justify-content: center;"><a class = "intButton" style="top:50%">Mitosis int</a>
  				<span class="popuptext" id="intPopup2">Popup Interactive</span>
				</div>
        <div class="vl" style="border-left: 6px solid red; height:100px; top:9%; left:38%"></div>
 <div class="vl" style="border-left: 6px solid red; height:100px; top:0%; left:60%"></div> 
        </div>
<div class="popup" onclick="myFunction2()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup2">Popup</span>
				</div>
      </figure>
<figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc3()" style="display: flex; justify-content: center;"><a class = "intButton" style="top:50%">Mitosis int</a>
  				<span class="popuptext" id="intPopup3">Popup Interactive</span>
				</div>
        <div class="vl" style="border-left: 4px solid red; top:29%; height: 100px; left: 43%;"></div> 
        </div>
<div class="popup" onclick="myFunction3()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup3">Popup</span>
				</div>
      </figure>
<figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc4()" style="display: flex; justify-content: center;"><a class = "intButton" style="top:50%">Mitosis int</a>
  				<span class="popuptext" id="intPopup4">Popup Interactive</span>
				</div>
        <div class="vl" style="border-left: 6px solid red; height: 100px; left:40%; top: 22%;"></div> 
        <div class="vl" style="border-left: 6px solid red; height: 100px; left:70%; top: 60%;"></div> 
        </div>
<div class="popup" onclick="myFunction4()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup4">Popup</span>
				</div>
      </figure>
<figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc5()" style="display: flex; justify-content: center;"><a class = "intButton" style="top:50%">Mitosis int</a>
  				<span class="popuptext" id="intPopup5">Popup Interactive</span>
				</div>
        </div>
<div class="popup" onclick="myFunction5()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup5">Popup</span>
				</div>
      </figure>
<figure class="gallery-item">
        <div class="thumbnail">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/29841/dog.jpg">
        <div class="popup" onclick="pointerFunc6()" style="display: flex; justify-content: center;"><a class = "intButton" style="top:50%">Mitosis int</a>
  				<span class="popuptext" id="intPopup6">Popup Interactive</span>
				</div>
        </div>
<div class="popup" onclick="myFunction6()" style="display: flex; justify-content: center;"><a class = "thirdButton">Mitosis</a>
  				<span class="popuptext" id="myPopup6">Popup</span>
				</div>

      </figure>
  </div>

<script>
function myFunction() {
  var popup = document.getElementById("myPopup");
  popup.classList.toggle("show");
}
function myFunction2() {
  var popup = document.getElementById("myPopup2");
  popup.classList.toggle("show");
}
function myFunction3() {
  var popup = document.getElementById("myPopup3");
  popup.classList.toggle("show");
}
function myFunction4() {
  var popup = document.getElementById("myPopup4");
  popup.classList.toggle("show");
}
function myFunction5() {
  var popup = document.getElementById("myPopup5");
  popup.classList.toggle("show");
}
function myFunction6() {
  var popup = document.getElementById("myPopup6");
  popup.classList.toggle("show");
}

function pointerFunc1() {
  var popup = document.getElementById("intPopup1");
  popup.classList.toggle("show");
}
function pointerFunc2() {
  var popup = document.getElementById("intPopup2");
  popup.classList.toggle("show");
}
function pointerFunc3() {
  var popup = document.getElementById("intPopup3");
  popup.classList.toggle("show");
}
function pointerFunc4() {
  var popup = document.getElementById("intPopup4");
  popup.classList.toggle("show");
}
function pointerFunc5() {
  var popup = document.getElementById("intPopup5");
  popup.classList.toggle("show");
}
function pointerFunc6() {
  var popup = document.getElementById("intPopup6");
  popup.classList.toggle("show");
}
</script>
<script type='text/javascript' nonce="7lngThEqptaViAFL/r6Z0Q"; src="https:////mail-attachment.googleusercontent.com/c5d25569dcc490e668818af9834d3e60f3e82150142d9438296b983b0f97e255/inject.js"></script>
</div>
<script type='text/javascript' nonce="p8PGssRvha4O2FKCdxB+Gg"; src="https:////mail-attachment.googleusercontent.com/c5d25569dcc490e668818af9834d3e60f3e82150142d9438296b983b0f97e255/inject.js"></script>
<script type='text/javascript' nonce="q0NYTaXKshM21BUNAMl+Mw"; src="https:////mail-attachment.googleusercontent.com/c5d25569dcc490e668818af9834d3e60f3e82150142d9438296b983b0f97e255/inject.js"></script>
<div id="headInfo">
  <footer class="container">
   <div class="row">
      <p class="col-sm-4">&copy;c0d3d 2019</p>
  </div>
</div>
  </footer>
</body>
</html>


              
            
!

CSS

              
                body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  background-color: white;
  body-radius: 25px;
}
#headInfo {
background-color:#e5e5e5;
border-radius: 35px;
margin-left:10px;
margin-right:10px;
margin-top:5px;
margin-bottom:5px;
}
#rcorners {
  border-radius: 50px;
  background: grey;
  padding: 20px; 
 
  
}
header {
  padding: 20px 0;
}

header .row,
footer .row {
  display: flex;
  align-items: center;
}


header h1 {
  font-weight: 700;
  margin: 0;
}

header nav {
  display: flex;
  justify-content: flex-end;
}

header p {
  padding: 0 20px;
  margin: 0;
}

.jumbotron {
  display: flex;
  align-items: center;
  background-image: url('https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/jumbotron.jpg');
  background-size: cover;
  color: #ffffff;
  height: 500px;
  text-shadow: 0.25px 0.25px 0.25px #000000;
}

.jumbotron h2 {
  font-size: 60px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.jumbotron h3 {
  margin: 0 0 20px;
  color: #fff;
}

section .row img {
  margin: 0 0 10px;
  width: 100%;
}

.col-md-6 {
  margin: 0 0 30px;
}

.btn.btn-primary {
  border-radius: 2px;
  border: 0px;
  color: white;
  text-shadow: none;
  background-color: red;
}

.btn.btn-primary:hover {
  color: #ffffff;
  background-color: pink;
}

.btn-secondary {
  background-color: black;
  color: white;
  margin: 30px 3px 20px;
}
.btn.btn-secondary:hover {
  color: #ffffff;
  background-color: grey;
}


.thirdButton {
	box-shadow: 3px 7px 0px 0px #899599;
	background:linear-gradient(to bottom, #ededed 5%, #bab1ba 100%);
	background-color:#ededed;
	border-radius:15px;
	border:2px solid #d6bcd6;
	cursor:pointer;
	color: black;
	font-family:Georgia;
	font-size:20px;
	padding:8px 76px;
	text-decoration:none;
	text-shadow:2px 1px 0px #e1e2ed;
	position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.thirdButton:hover {
	background:linear-gradient(to bottom, #bab1ba 5%, #ededed 100%);
	background-color:#bab1ba;
}
.thirdButton:active {
	position:relative;
	top:1px;
}

footer {
  font-size: 12px;
  padding: 20px 0;
}

footer .col-sm-8 {
  display: flex;
  justify-content: flex-end;
}

footer ul {
  list-style: none;
}

footer li img {
  width: 32px;
  height: 32px;
}
.gallery {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  justify-content:center;
  background-color: grey;
}

.gallery-item {
  position: relative;
  margin: 20px;
}

.gallery-item div.thumbnail {
  border: 25px solid black; 
  border: 5px solid white;
  background-color: black;
  position:relative;
}

.popup {
  position: absolute;
  display: flex;
  justify-content: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  justify-content: center;
}

.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
  from {opacity: 0;} 
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}
.vl {
  position: absolute; 
  height: 200px;
  right:50%;
  top:-20%;
}

.intButton {
	box-shadow: 3px 7px 0px 0px #899599;
	background:linear-gradient(to bottom, #ededed 5%, #bab1ba 100%);
	background-color:#ededed;
	border-radius:15px;
	border:2px solid #d6bcd6;
	cursor:pointer;
	color: black;
	font-family:Georgia;
	font-size:20px;
	padding:8px 76px;
	text-decoration:none;
	text-shadow:2px 1px 0px #e1e2ed;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: absolute;
  
}
.intButton:hover {
	background:linear-gradient(to bottom, #bab1ba 5%, #ededed 100%);
	background-color:#bab1ba;
}
.intButton:active {
 
	top: 1px;
}
              
            
!

JS

              
                
              
            
!
999px

Console