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

  • SEARCH
  • Home
  • 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 8454069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:55:40+00:00 2026-06-10T11:55:40+00:00

To clarify: Right now, most likely due to readability, CSS is written somewhat like

  • 0

To clarify:

Right now, most likely due to readability, CSS is written somewhat like so:

element {
    text-decoration: underline;
}

#selector {
    font-size: 50px;
    color: red;
    text-decoration: underline;
}

.selector-two {
    color: red;
}

In this example, properties are assigned to selectors to give them a certain style. Also, certain properties are assigned multiple times to different selectors. Would there be a difference in performance or size of the stylesheet if it was written like so:

element, #selector { text-decoration: underline; }
#selector, .selector-two { color: red; }
#selector { font-size: 50px; }

Of course this wouldn’t make it easy to see in the CSS which styles are applied to certain elements, but would there be any benefits if you can minify your CSS code to look this?

  • 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-06-10T11:55:41+00:00Added an answer on June 10, 2026 at 11:55 am

    CSS speed optimisation is a complete waste of time.

    Browsers can parse that stuff ridiculously quickly.

    You’d be better off focusing on reducing the file size of your collateral, i.e. your images, css files, html, javascript, etc.

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

Sidebar

Related Questions

Right now we just use something like this stopWatch.Start(); try { method(); } finally
Right now I clarify this may be a duplicated question from: Right-aligned labels in
Lets clarify my question, I want to make an element which the element contains
I would like to clarify this issue. I had installed Cocos2d 1.01 rc on
To clarify, how can run a custom function right before jquery's validation plugin runs
Ok, I'm feeling pretty thick right now. Basically, I want to define a JavaScript
I am writing a Bytecode instrumenter. Right now, I am trying to find out
I am developing an application using jQuery that uses cookies. Right now, it is
I have almost no experience with PHP and right now I'm stuck at the
I am playing around with sizeof() in GCC on a Linux machine right now

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.