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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:33:39+00:00 2026-06-01T16:33:39+00:00

I am inserting an image into a div container with css like this: .ft-folder-closed:before

  • 0

I am inserting an image into a div container with css like this:

.ft-folder-closed:before {
    content: url('../ll-filetree/img/ft-plus.16.png');
}

I want apply some css attributes to that image without listing them in the together with the “content” attribute, but apply a nother style to it, to reduce CSS overhead. Something like this, but that of course does not work:

.ft-folder-closed:before {
    content: url('../ll-filetree/img/ft-plus.16.png');
    inherit: ft-floder-icon;
}

Any chance to do that?

  • 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-01T16:33:41+00:00Added an answer on June 1, 2026 at 4:33 pm

    You can group your CSS selectors to apply the same styles on multiple elements. This allows you to apply the same styles to multiple elements without repeating the styles.

    Example:

    .ft-folder-icon, .ft-folder-closed:before {
         color: red;
    }
    

    This will apply the color: red; style to both the .ft-folder-icon elements and the .ft-folder-closed:before pseudo-elements.

    If you decided to use a CSS pre-processor like LESS you could abstract your CSS using “mixins” similar to this:

    .ft-folder-closed:before{
         .ft-folder-icon;
    }
    

    Using “mixins” you can embed all of the properties of a class into another class just by including the class name as one of its properties. It’s very similar to variables, but for entire classes.

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

Sidebar

Related Questions

I'm inserting some data into a div container via ajax. When its just straight
I'm inserting an img tag into my document with the new Element constructor like
Before inserting data into table i need to check against duplicate records and report
So far I've managed to create this method for inserting into a SQLite database
I am trying to convert bitmap images into a base64 string before inserting it
The python sqlite3 documentation gives this example for inserting parameters into an SQL query.
Right I seem to be having a issue inserting a image into a database
When inserting an image via media uploader into a wordpress Post, is there a
i am successfully inserting images into my jar file but all images go to
When inserting copy into an HTML document I get from sources such as word

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.