Skip to content
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
25 changes: 12 additions & 13 deletions express/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,10 @@ font-family: 'Questrial', sans-serif;
border:none;
cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
background-color: red;
}


/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
Expand All @@ -98,12 +92,17 @@ font-family: 'Questrial', sans-serif;
display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
Comment thread
mayhemcreates marked this conversation as resolved.
.dropdown:hover .dropbtn {background-color: #3e8e41;}

/* ===================================
listings grid
Expand All @@ -122,4 +121,4 @@ font-family: 'Questrial', sans-serif;
width: 300px;
height: 300px;
object-fit: cover;
}
}
7 changes: 5 additions & 2 deletions express/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ <h2>For gardens on the grooow</h2>
</section>
<section id="filters">
<div class="filter-wrapper">
<!--buttons-->
<div class="nav-item">
<button onclick="myFunction()" class="dropbtn">Sort</button>
<div id="myDropdown" class="dropdown-content">
<div class="dropdown">
<button class="dropbtn">Sort</button>
<div class="dropdown-content">
<a href="#">Sort A-Z</a>
<a href="#">Sort Z-A</a>
<a href="#">Sort Jan - Dec</a>
</div>
</div>
</div>
<div class="nav-item">
<button onclick="myfunction()" class="dropbtn">Filter</button>
Expand Down