Home › Forums › CSS › SideNav: 'push in' desktop, 'overlay' mobile › Reply To: SideNav: 'push in' desktop, 'overlay' mobile
December 29, 2017 at 1:56 am
#264637
Beverleyh
Participant
To overlay, null/don’t use the left margin here;
#secret-checkbox:checked ~ .content{
margin-left: 150px;
}
You’ll need to use a media query to change the behaviour at whatever mobile/desktop threshold you see fit.