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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:03:32+00:00 2026-05-31T20:03:32+00:00

Geez, I tried this @mixin prefix($property, $value){ #{$property}: -webkit-#{$value}; #{$property}: -moz-#{$value}; #{$property}: #{$value}; }

  • 0

Geez,
I tried this

@mixin prefix($property, $value){

    #{$property}: -webkit-#{$value};
    #{$property}:  -moz-#{$value};
    #{$property}: #{$value};
}

but i got this when used this @include prefix(display, border-box)

  display: -webkit- border-box;
  display: -moz- border-box;
  display: border-box; 

There is annoying space between prefix and css value. How to get rid of it?
Thnx in advance!

  • 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-31T20:03:34+00:00Added an answer on May 31, 2026 at 8:03 pm

    Using your code and just swapping suffix to prefix works fine for me. This is the text string that I stuck into the Sass Try Online generator.

    @mixin prefix($property, $value){
    
        #{$property}: -webkit-#{$value};
        #{$property}:  -moz-#{$value};
        #{$property}: #{$value};
    }
    
    h2 {
        @include prefix(display, border-box)
    }
    

    The output looked like the following code:

    h2 {
      display: -webkit-border-box;
      display: -moz-border-box;
      display: border-box; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure this is going to be an 'oh geez' simple answer, but I
I am not yet so good with reading Amharic (Geez / Ethiopic) letters. If
So I have a little Linux problem, geez that will teach me to spend
I'm building a map using the google v3 api because it is way faster.
I am creating a custom module for a Magento ecommerce site, and the module
I want to fade 3 or more statements out and in, indefinitely. Here is
I experienced a horrible problem today as a result of differences between Rail's production
I have a project here and it has set by default that the actions
I am stuck trying to create a regex that will allow for letters, numbers,
I am a factory employee who's done just a little programming. I want to

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.