What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

More than one hoverable drop down menu

LJS

New member
Joined
May 27, 2020
Messages
2
Reaction score
0
HTML Coins
0
Hello there

I am using this code for a hoverable dropdown list on my page...

<style>

.dropbtn {

OPACITY: 1;
color: RGB(0, 120, 150);
background-color: RGB(0, 120, 150);
padding: 1px 80px;
font-size: 25px;
font: Helvetica RoundedArial,sans-serif;
border: none;
position:fixed;top:11.0%;left:53%;
}

.dropdown {
position:fixed;top:15%;left:53%;
display: inline-block;
font: Helvetica RoundedArial,sans-serif;
}

.dropdown-content {
display: none;
position: left;
background-color: RGB(0, 120, 150);
z-index: 1;

font: Arial Rounded MT Bold;
}

.dropdown-content a {
color: white;
padding: 0px 30px;
font-size: 16px;
font: Helvetica RoundedArial,sans-serif;
text-decoration: none;
display: block;

}

.dropdown-content a:hover {background-color: RGB(0, 140, 150);}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: RGB(0, 120, 150);;}


</style>
</head>

<div class="dropdown">
<button class="dropbtn">Title</button>
<div class="dropdown-content">
<a style="font-family:Arial Rounded MT Bold,Helvetica Rounded,Arial,sans-serif; "href="" class="btn btn-default"></a>
<a style="font-family:Arial Rounded MT Bold,Helvetica Rounded,Arial,sans-serif; "href="" class="btn btn-default"></a>
<a style="font-family:Arial Rounded MT Bold,Helvetica Rounded,Arial,sans-serif; "href="" class="btn btn-default"></a>

</div>
</div>
</body>
</html>

I was wondering how I would be able to integrate more than one drop down on the same page, when i try to put another one, all it does is move where the button for the above drop down is on the page. I don't seem to be able to have more than one menu.

Many thanks in advance
 

Attachments

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back