Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:21:53+00:00 2026-05-27T17:21:53+00:00

When I organize my CSS, I like to keep related styles altogether (header styles

  • 0

When I organize my CSS, I like to keep related styles altogether (header styles are in one section, footer styles are all in the same place, etc.) (sorry, OOCSS advocates).

I’ve recently been experimenting with media queries for smaller/larger screens. To keep with my organizational scheme, I would have to include separate queries for each screen size I’m targeting with each section of the code. (So, for example, if I was supporting, like, seven different screen sizes, I would have seven different media queries with my “header” CSS, and then seven queries in the “footer” section, etc.)

Leaving aside the question of whether or not this is how I should do it, are there any technical ramifications to having so many blocks of media queries? (They’re all either min-width, max-width, or both. Say I had 100 different queries, but there are only seven distinct sizes I’m checking over and over again.) Would it take the browser longer to parse?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:21:53+00:00Added an answer on May 27, 2026 at 5:21 pm

    The code handling potentially slow paths is heavily optimized in modern browsers, so you don’t need to pre-optimize this kind of things unless you definitely have to, with the profiling data at hand. Go ahead and write it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you organize installing different programs if these programs use the same DLLs
How would you organize an entity that has 100s of properties? One could go
how do i organize country data (countries, states and cities etc) in mysql? cause
What are the differences between how CSS and Latex organize boxes? (Either paragraph or
I am attempting to organize one to six images in a grid with a
I would like to organize my ****load of MySQL tables into smaller sections, or
I am trying to organize my JavaScript. What I would like to do is
In my project I have put all my css classes in the style sheets.
I use Dreamweaver for HTML, PHP, CSS, and JS. I like how it keeps
Stylesheet languages like Sass and Less allow us to organize our stylesheets like real

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.