Yes.
display: none  removes it from the DOM to hide it. That includes the parent and 
any children.
Visibility:hidden can malfunction on a parent element if visibility:visible is 
set on any children.
This may be what you were thinking of.

Just fyi, if you set display:none on a nav menu, screen readers will not see 
your links.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Feb 28, 2016, at 2:12 PM, John J <cr8...@gmail.com> wrote:

> I have my "waffle" menu div hiding until viewport reaches max-width:
> 42.5rem, using display:none; in the desktop CSS, then using display:inline;
> at 42.5rem
> 
> Is it adequate correct to apply same thing in reverse to just the header
> nav ul? Or must I apply it also to all the children?
> 
> Something tells me that if the parent is hidden, the children are also
> hidden (cascade) but I would like to make sure.
> 
> thank you,
> 
> John
> ______________________________________________________________________
> css-discuss [css-d@lists.css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to