@media queries
-
I am trying to figure out how to best incorporate @media queries into my CSS. I was going to determine my own breakpoints by resizing the browser to see at which points my problems occur. I have established that this would require more breakpoints than I expected. I am now rethinking and wondering what the best practice (and best strategy) for this would be.
1. Is it safer to use the same breakpoints as the parent theme uses and modify my CSS accordingly or to create my own breakpoints?
2. If parent is best, I am having trouble establishing the best order. Keeping in mind the cascading nature of CSS, I set out to go from smallest width to largest but am confused how to do it since some are min-width, some are max-width and some have both.THANKS in advance for any advice.
These are the media queries I found in the PARENT CSS in this order (I realize some are duplicates):
@media (min-width: 768px) and (max-width: 979px) {
@media (max-width: 767px) {
@media print {
@media (min-width: 1200px) {
@media (min-width: 768px) and (max-width: 979px) {
@media (max-width: 767px) {
@media (min-width: 480px) and (max-width: 767px) {
@media (max-width: 480px) {
@media (max-width: 979px) {
@media (min-width: 980px) {
@media (max-width: 1200px) {
@media (max-width: 979px) {
@media (max-width: 767px) {
@media (max-width: 480px) {
@media (max-width: 320px) {
- The topic ‘@media queries’ is closed to new replies.