Breakpoints
-
Hi!
I’m trying to use breakpoints to make some adjustments for different devices and displays. I’m currently having an issue of certain functions not working and I don’t know why. For example, I want to change the position of the sidebar on laptops, however margin-right and weight do nothing. It worked for the primary content area, but the sidebar refuses to change for laptops, except if I change the values in breakpoint made for PC screens.
Code:
/* LAPTOP */ @media only screen and (min-width: 992px) { .sidebar-main { margin-right: 5%; float: right; } .sidebar-content-area { box-sizing: border-box; margin: 0px -90px 0px 0px } } /* PC */ @media only screen and (min-width: 1200px) { .sidebar-main { position: relative; float: right; margin-right: -65%; width: -webkit-fill-available; width: -moz-available; } .sidebar-content-area { width: 16%; box-sizing: border-box; margin: 0px -190px 0px 0px } }
Thank you for your help!
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Breakpoints’ is closed to new replies.