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 8536399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:39:16+00:00 2026-06-11T10:39:16+00:00

By efficient I mean less code (less css rules). Because I’m converting a CSS

  • 0

By efficient I mean less code (less css rules).

Because I’m converting a CSS file to less, and I’m surprised to find out that the compiled CSS file is quite small (I haven’t finished yet :P)

  • 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-11T10:39:17+00:00Added an answer on June 11, 2026 at 10:39 am

    LESS (when compiled) and Sass both minify your CSS. In addition to stripping out whitespace, you’ll sometimes see things like border: 0 10px 0 10px get turned into border: 0 10px or colors like #666666 turned into #666. It isn’t any more efficient, but it does make a smaller download for the user (which is valuable for mobile devices).

    That said, Sass has a unique directive called @extend, which allows you to group your styles logically in the pre-compiled state, but will group them together to avoid duplication in the compiled state.

    .classA { color: blue }
    
    // 50 lines of code defining other elements...
    
    .classB { @extend .classA }
    

    Will output something that looks like this:

    .classA, .classB { color: blue }
    

    It doesn’t seem like that big of a deal with 2 classes only having one thing in common, but its a bigger deal the more elements you are using and the more things they have in common.

    Otherwise no. The efficiency is entirely based on the author.

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

Sidebar

Related Questions

I'm trying to work out the most efficient method to find the linear regression
A string = aabbccaaabbcbbdbabdaaa; How can that string be checked out in efficient way
What I mean by efficient is performance (loading pages ... etc). I know that
Is a redirect less efficient than returning other types of result? I ask because
How efficient is the find() function on the std::map class? Does it iterate through
What is the most efficient regex that will match these domains, without having to
I'm trying to find a little bit more information for efficient square root algorithms
People always say that C is more efficient than any other high level language.I
For the sake of this question, let efficiency mean, more-or-less, page rendering speed. Albeit,
Is it more efficient to store the XML file paths and reference them through

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.