The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Dropdown text into topic

Go down

Dropdown text into topic Empty Dropdown text into topic

Post by mmägi May 5th 2016, 11:14 am

hey i got code somekind but how i make it in topic to use it like list

Code:
<!DOCTYPE html>
<html>
<head>
<style>
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}
</style>
</head>
<body>

<h2>Hoverable Dropdown</h2>
<p>Move the mouse over the text below to open the dropdown content.</p>

<div class="dropdown">
  <span>Mouse over me</span>
  <div class="dropdown-content">
    <p>Hello World!</p>
  </div>
</div>

</body>
</html>


how i make it like in my punbb forum like list but i can just make like title and if i hover it in post then i see the list

Code:

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
}

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


that working but i have like none in the box and that box isnt fully showing

fixed it changed position to absulute

and how i design the box ???
mmägi
mmägi
Forumember

Male Posts : 402
Reputation : 4
Language : Estonia

http://royal.forumc.net/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum