0

I’m working on a website and I need to include a drop-down menu and a slide show. They both work okay, but when I try to open the drop-down menu, I have to be really fast in order to keep the menu open. I think the reason for that has something to do with the code for the slideshow in css.

CSS

/*Slideshow*/

#slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px;
  opacity: 0.49;
  margin: -0.7%;
}

#slideshow > div {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

/* I think the problem is whats right above this text.*/

/*Dropdown Menu*/

.dropdown {
  float: right;
  overflow: hidden;
}

.dropbtn {
  border: none;
  outline: none;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.headerB c:hover, .dropdown:hover .dropbtn {
  background-color: white;
  color: #2099ba;
}

.dropbtn {
  color: black;
  font-size: 30px;
  padding-top: 19px;
  font-family: "Catamaran", sans-serif;
  float: right;
  left: 1300px;
  position: absolute;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  right: 90px;
  top: 175px;
}

.dropdown-content c {
  float: float;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content c:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
} 

HTML

<!DOCTYPE html>
<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"> </script>
  <link rel="stylesheet" href="homepage.css">
  <script src = "homepage.js"> </script>
  <link href="https://fonts.googleapis.com/css2?family=Catamaran:[email protected]&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=PT+Sans&display=swap" rel="stylesheet">
</head>

<title> COVID PAGE</title>

<div class="headerB">
  <header>
      <div class="containerB">
        <nav>
          <ul>
            <div class="dropdown">
              <button class="dropbtn">☰
                <i class="fa fa-caret-down"></i>
              </button>
              <div class="dropdown-content">
                <c href="#">Home</c>
                <c href="#">Transportation</c>
                <c href="#">Mask Guidelines</c>
                <c href="#">Lunch</c>
                <c href="#">Maps</c>
                <c href="#">Dr. D's Emails</c>
                <c href="#">COVID-19 Education</c>
              </div>
            </div>
          </ul>

        </nav>
      </div>
  </header>
</div>

<!--Slideshow-->
<div id="slideshow">
  <div>
       <img src="slideshow/lowerSchool.jpg" style= width:100%>
     </div>
     <div>
       <img src="slideshow/newMs.jpg" style=width:100% >
     </div>

  <div class="mySlides fade">
    <img src="slideshow/stem1.jpg" style="width:100%">
  </div>

  <div class="mySlides fade">
    <img src="slideshow/stem2.jpg" style="width:100%">
  </div>
  <div class="mySlides fade">
    <img src="slideshow/kleinWalkway.jpg" style="width:100%">
  </div>
  <div class="mySlides fade">
    <img src="slideshow/leggettField.jpg" style="width:100%">

  </div>


  </div>
</html


Can anyone help me find what is wrong or how to fix it?