What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-30 20:48:01
bootstrap set breakpoints
/* Answer to: "bootstrap media queries" */ /* Since Bootstrap is developed to be mobile first, the use a handful of media queries to create sensible breakpoints for their layouts and interfaces. These breakpoints are mostly based on minim... Add solution -
CSS 2021-09-21 15:26:04
@media screen and (max-width
/* Max-width */ @media only screen and (max-width: 600px) {...} /* Min-width */ @media only screen and (min-width: 600px) {...} /* Combining media query expressions */ @media only screen and (max-width: 600px) and (min-width: 400px) {...} Add solution -
CSS 2021-09-12 23:59:04
css @media measurements
// Extra small devices (portrait phones, less than 576px) // No media query for `xs` since this is the default in Bootstrap // Small devices (landscape phones, 576px and up) @media (min-width: 576px) { ... } // Medium devices (tablets, 768px and up) @medi... Add solution -
CSS 2021-09-12 14:18:02
what is a max and min width media query
/* Max-width */ @media only screen and (max-width: 600px) {...} /* Min-width */ @media only screen and (min-width: 600px) {...} /* Combining media query expressions */ @media only screen and (max-width: 600px) and (min-width: 400px) {...} Add solution -
Javascript 2021-09-06 09:01:02
how to change div color with media query in javascript
function myFunction(x) { if (x.matches) { // If media query matches document.body.style.backgroundColor = "yellow"; } else { document.body.style.backgroundColor = "pink"; } } var x = window.matchMedia("(max-width: 7... Add solution -
CSS 2021-09-05 07:39:02
`@apply` cannot be used with either cannot be found, or its actual definition includes a pseudo-selector like
/* Hey! This is explained here in the docs: */ /* https://tailwindcss.com/docs/functions-and-directives#apply */ /* It's important to understand that @apply will not work for inlining pseudo-class or responsive variants of another utility. Instead, ap... Add solution -
CSS 2021-09-04 21:18:05
media query only screen
@media not|only mediatype and (mediafeature and|or|not mediafeature) { CSS-Code; } meaning of the not, only and and keywords: not: The not keyword inverts the meaning of an entire media query. only: The only keyword prevents older browsers that do no... Add solution -
Other 2021-09-04 16:20:02
responsive media queries
/* Max-width */ @media only screen and (max-width: 600px) {...} /* Min-width */ @media only screen and (min-width: 600px) {...} /* Combining media query expressions */ @media only screen and (max-width: 600px) and (min-width: 400px) {...} Add solution