Jump to content

Yeah you may try to look at a site called w3schools they are great!Here 

 

<select>
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>

 

This would give you 4 drop down options.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[DESKTOP] CPU: Intel Core i7 8700k GPU: ASUS ROG 2080TI RAM: 64GB Corsair Fury DDR4 Mobo: Asus z390-A Prime

Storage:1x 1TB Samsung 990 Pro SSD 2x 1TB WD Black SSD, 2x 3Tb Seagate  HDD PSU: Seasonic 950W

Monitors: 2x Asus TUF Gaming 24" 1440p  144hz, 2x LG  75Hz 1080p LED

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[SERVER/NAS] CPU: Intel Core i7 7700K GPU: Nvidia 1060 6GB RAM: 32 GB Corsair Vengeance Mobo: Asus z-170P D3

Storage:1x 1TB Western Digital SSD, 4x Ironwolf Pro 12Tb HDD, 2x 2TB WD Blue  PSU: Thermaltake 650W

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[LAPTOP (MacBook Pro 16")] CPU: 2.4 GHz 8-Core Intel Core i9, RAM: 32 GB 2667 MHz DDR4, SSD: 2 TB

GPU: AMD Radeon Pro 5500M 8GB Display: 16-inch (3072 x 1920)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Link to post
Share on other sites

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to post
Share on other sites

5 minutes ago, mikestechs said:

Thank you for answer, but i have a lil problem here. I have seen the site W3schools, its great, but my problem is that my dropup menu is on background of the site.. and i dont know how to move i to foreground 

You can change the Z index of the item to 1, so it is in front of stuff (this is a CSS thing, Google around a bit and figure out how it would work for you)

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

You need to put it in a <div> and then in the css use  to move it to the foreground hope this helps

 

#dropdown

{

  z-index:10;

}

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[DESKTOP] CPU: Intel Core i7 8700k GPU: ASUS ROG 2080TI RAM: 64GB Corsair Fury DDR4 Mobo: Asus z390-A Prime

Storage:1x 1TB Samsung 990 Pro SSD 2x 1TB WD Black SSD, 2x 3Tb Seagate  HDD PSU: Seasonic 950W

Monitors: 2x Asus TUF Gaming 24" 1440p  144hz, 2x LG  75Hz 1080p LED

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[SERVER/NAS] CPU: Intel Core i7 7700K GPU: Nvidia 1060 6GB RAM: 32 GB Corsair Vengeance Mobo: Asus z-170P D3

Storage:1x 1TB Western Digital SSD, 4x Ironwolf Pro 12Tb HDD, 2x 2TB WD Blue  PSU: Thermaltake 650W

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[LAPTOP (MacBook Pro 16")] CPU: 2.4 GHz 8-Core Intel Core i9, RAM: 32 GB 2667 MHz DDR4, SSD: 2 TB

GPU: AMD Radeon Pro 5500M 8GB Display: 16-inch (3072 x 1920)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Link to post
Share on other sites

10 minutes ago, bradmonster said:

You need to put it in a <div> and then in the css use  to move it to the foreground hope this helps

 

#dropdown

{


  z-index:10;

}

I have this: 

 

.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;
    margin-top: 1px;
    font: 10px;
    bottom: 100%;
    z-index:10;
}

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

 

 

and this in html file: 

<ul>
<b>
<div class="dropdown">
<li><a href="uvod.html" target="_self" name="about" ><span>ABOUT</span></a></li>
<div class="dropdown-content">
<span>test</span>
</div>
</div>
<li><a href="history.html" target="_self" name="history" > HISTORY</a></li>
<li><a> Apss</a></li>
<li><a> Android</a></li>
<li style="float:right"><a href="index.html">HOME</a></li>
</b>
</ul>

 

but it doesnt work :/

Link to post
Share on other sites

Hey, after looking at your code, not sure why it's not working I maybe missing something, here is a good site to compare to; http://jsfiddle.net/Hjaj4/ also try a higher index like 100 or 1000 to test it.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[DESKTOP] CPU: Intel Core i7 8700k GPU: ASUS ROG 2080TI RAM: 64GB Corsair Fury DDR4 Mobo: Asus z390-A Prime

Storage:1x 1TB Samsung 990 Pro SSD 2x 1TB WD Black SSD, 2x 3Tb Seagate  HDD PSU: Seasonic 950W

Monitors: 2x Asus TUF Gaming 24" 1440p  144hz, 2x LG  75Hz 1080p LED

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[SERVER/NAS] CPU: Intel Core i7 7700K GPU: Nvidia 1060 6GB RAM: 32 GB Corsair Vengeance Mobo: Asus z-170P D3

Storage:1x 1TB Western Digital SSD, 4x Ironwolf Pro 12Tb HDD, 2x 2TB WD Blue  PSU: Thermaltake 650W

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[LAPTOP (MacBook Pro 16")] CPU: 2.4 GHz 8-Core Intel Core i9, RAM: 32 GB 2667 MHz DDR4, SSD: 2 TB

GPU: AMD Radeon Pro 5500M 8GB Display: 16-inch (3072 x 1920)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×