Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display: hidden CSS not working

Tags:

html

css

I'm trying to make parts of a list hidden when the page loads.
Specifically the sdt_wrap class of my HTML.
I know that the display:hidden is in the correct spot it just is not taking in the hidden value

Here is the CSS:

ul.sdt_menu li span.sdt_wrap{
    position:absolute;
    top:25px;
    left:50px;
    width:170px;
    height:150px;
    z-index:501;
    display: hidden;
}
like image 298
Gonzy Avatar asked Mar 21 '26 18:03

Gonzy


2 Answers

hidden is not a valid value for display. You're looking for none, as in:

ul.sdt_menu li span.sdt_wrap{
    display:none;
}

Documentation

CSS display on MDN - https://developer.mozilla.org/en/CSS/display

like image 126
Chris Baker Avatar answered Mar 24 '26 10:03

Chris Baker


It's display:none or visibility:hidden. 'hidden' is not a valid value for 'display'.

like image 34
b7kich Avatar answered Mar 24 '26 09:03

b7kich