how to flip glyphicon icon












35















Is there any way to flip glyphicon. I found Flip an Image css trick, but that does not work for glyphicon. Please any suggestions










share|improve this question























  • Can you show the code that you have tried?

    – Nitesh
    Sep 4 '13 at 9:18











  • Refer this link it works stackoverflow.com/questions/18604829/…

    – anand
    Jan 10 '14 at 15:05











  • Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

    – Chris Marisic
    Apr 12 '16 at 15:56
















35















Is there any way to flip glyphicon. I found Flip an Image css trick, but that does not work for glyphicon. Please any suggestions










share|improve this question























  • Can you show the code that you have tried?

    – Nitesh
    Sep 4 '13 at 9:18











  • Refer this link it works stackoverflow.com/questions/18604829/…

    – anand
    Jan 10 '14 at 15:05











  • Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

    – Chris Marisic
    Apr 12 '16 at 15:56














35












35








35


7






Is there any way to flip glyphicon. I found Flip an Image css trick, but that does not work for glyphicon. Please any suggestions










share|improve this question














Is there any way to flip glyphicon. I found Flip an Image css trick, but that does not work for glyphicon. Please any suggestions







css icons flip glyphicons






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 4 '13 at 9:14









JamolJamol

1,39263160




1,39263160













  • Can you show the code that you have tried?

    – Nitesh
    Sep 4 '13 at 9:18











  • Refer this link it works stackoverflow.com/questions/18604829/…

    – anand
    Jan 10 '14 at 15:05











  • Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

    – Chris Marisic
    Apr 12 '16 at 15:56



















  • Can you show the code that you have tried?

    – Nitesh
    Sep 4 '13 at 9:18











  • Refer this link it works stackoverflow.com/questions/18604829/…

    – anand
    Jan 10 '14 at 15:05











  • Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

    – Chris Marisic
    Apr 12 '16 at 15:56

















Can you show the code that you have tried?

– Nitesh
Sep 4 '13 at 9:18





Can you show the code that you have tried?

– Nitesh
Sep 4 '13 at 9:18













Refer this link it works stackoverflow.com/questions/18604829/…

– anand
Jan 10 '14 at 15:05





Refer this link it works stackoverflow.com/questions/18604829/…

– anand
Jan 10 '14 at 15:05













Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

– Chris Marisic
Apr 12 '16 at 15:56





Rotating icons that are use pseudo before/after content stackoverflow.com/questions/9779919/…

– Chris Marisic
Apr 12 '16 at 15:56












2 Answers
2






active

oldest

votes


















63














Like this



HTML



<a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a>


CSS



.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
}


OR



http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped






share|improve this answer





















  • 2





    This didn`t work. I am not using fontawesome. I am using glyphicons

    – Jamol
    Sep 4 '13 at 10:13






  • 2





    This worked for me and I'm using glyphicons (via twitter bootstrap) too

    – corinnaerin
    Jul 14 '15 at 20:19











  • You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

    – Berty
    Feb 9 '16 at 10:41






  • 1





    @jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

    – Leopoldo Sanczyk
    Dec 29 '16 at 0:59











  • I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

    – getName
    yesterday





















15














Using glyphicons managed to make this work like so:



HTML



<span class="glyphicon glyphicon-search" id="my-glyphicon"></span>


CSS



#my-glyphicon {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}


see JSFiddle here






share|improve this answer
























  • i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

    – MonsterMMORPG
    Jun 28 '16 at 13:23











  • @MonsterMMORPG not that I'm aware of.

    – Jax
    Jun 28 '16 at 18:27











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18609819%2fhow-to-flip-glyphicon-icon%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









63














Like this



HTML



<a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a>


CSS



.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
}


OR



http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped






share|improve this answer





















  • 2





    This didn`t work. I am not using fontawesome. I am using glyphicons

    – Jamol
    Sep 4 '13 at 10:13






  • 2





    This worked for me and I'm using glyphicons (via twitter bootstrap) too

    – corinnaerin
    Jul 14 '15 at 20:19











  • You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

    – Berty
    Feb 9 '16 at 10:41






  • 1





    @jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

    – Leopoldo Sanczyk
    Dec 29 '16 at 0:59











  • I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

    – getName
    yesterday


















63














Like this



HTML



<a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a>


CSS



.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
}


OR



http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped






share|improve this answer





















  • 2





    This didn`t work. I am not using fontawesome. I am using glyphicons

    – Jamol
    Sep 4 '13 at 10:13






  • 2





    This worked for me and I'm using glyphicons (via twitter bootstrap) too

    – corinnaerin
    Jul 14 '15 at 20:19











  • You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

    – Berty
    Feb 9 '16 at 10:41






  • 1





    @jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

    – Leopoldo Sanczyk
    Dec 29 '16 at 0:59











  • I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

    – getName
    yesterday
















63












63








63







Like this



HTML



<a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a>


CSS



.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
}


OR



http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped






share|improve this answer















Like this



HTML



<a href="#" class="btn"><i class="icon-rotate icon-flipped"></i></a>


CSS



.icon-flipped {
transform: scaleX(-1);
-moz-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
-ms-transform: scaleX(-1);
}


OR



http://fortawesome.github.io/Font-Awesome/examples/#rotated-flipped







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 24 '17 at 18:16









cale_b

19.7k44782




19.7k44782










answered Sep 4 '13 at 9:16









Falguni PanchalFalguni Panchal

7,48421928




7,48421928








  • 2





    This didn`t work. I am not using fontawesome. I am using glyphicons

    – Jamol
    Sep 4 '13 at 10:13






  • 2





    This worked for me and I'm using glyphicons (via twitter bootstrap) too

    – corinnaerin
    Jul 14 '15 at 20:19











  • You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

    – Berty
    Feb 9 '16 at 10:41






  • 1





    @jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

    – Leopoldo Sanczyk
    Dec 29 '16 at 0:59











  • I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

    – getName
    yesterday
















  • 2





    This didn`t work. I am not using fontawesome. I am using glyphicons

    – Jamol
    Sep 4 '13 at 10:13






  • 2





    This worked for me and I'm using glyphicons (via twitter bootstrap) too

    – corinnaerin
    Jul 14 '15 at 20:19











  • You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

    – Berty
    Feb 9 '16 at 10:41






  • 1





    @jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

    – Leopoldo Sanczyk
    Dec 29 '16 at 0:59











  • I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

    – getName
    yesterday










2




2





This didn`t work. I am not using fontawesome. I am using glyphicons

– Jamol
Sep 4 '13 at 10:13





This didn`t work. I am not using fontawesome. I am using glyphicons

– Jamol
Sep 4 '13 at 10:13




2




2





This worked for me and I'm using glyphicons (via twitter bootstrap) too

– corinnaerin
Jul 14 '15 at 20:19





This worked for me and I'm using glyphicons (via twitter bootstrap) too

– corinnaerin
Jul 14 '15 at 20:19













You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

– Berty
Feb 9 '16 at 10:41





You should keep in mind to put the real css property last in the list since this could in some cases cause a render differance: css-tricks.com/ordering-css3-properties

– Berty
Feb 9 '16 at 10:41




1




1





@jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

– Leopoldo Sanczyk
Dec 29 '16 at 0:59





@jCloud to use this solution with Bootstrap Glyphicons you should do like this: <a href="#" class="btn"><span class="glyphicon glyphicon-repeat icon-flipped"></span></a>. Sorry for coding in the comments, my edits were rejected.

– Leopoldo Sanczyk
Dec 29 '16 at 0:59













I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

– getName
yesterday







I tried to apply this to iron-icon (which is icon components for Polymer) and it didn't work!! @falguni-panchal do you have an idea ? inside the component there is an svg icon btw

– getName
yesterday















15














Using glyphicons managed to make this work like so:



HTML



<span class="glyphicon glyphicon-search" id="my-glyphicon"></span>


CSS



#my-glyphicon {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}


see JSFiddle here






share|improve this answer
























  • i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

    – MonsterMMORPG
    Jun 28 '16 at 13:23











  • @MonsterMMORPG not that I'm aware of.

    – Jax
    Jun 28 '16 at 18:27
















15














Using glyphicons managed to make this work like so:



HTML



<span class="glyphicon glyphicon-search" id="my-glyphicon"></span>


CSS



#my-glyphicon {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}


see JSFiddle here






share|improve this answer
























  • i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

    – MonsterMMORPG
    Jun 28 '16 at 13:23











  • @MonsterMMORPG not that I'm aware of.

    – Jax
    Jun 28 '16 at 18:27














15












15








15







Using glyphicons managed to make this work like so:



HTML



<span class="glyphicon glyphicon-search" id="my-glyphicon"></span>


CSS



#my-glyphicon {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}


see JSFiddle here






share|improve this answer













Using glyphicons managed to make this work like so:



HTML



<span class="glyphicon glyphicon-search" id="my-glyphicon"></span>


CSS



#my-glyphicon {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}


see JSFiddle here







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 28 '15 at 15:20









JaxJax

1,58421526




1,58421526













  • i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

    – MonsterMMORPG
    Jun 28 '16 at 13:23











  • @MonsterMMORPG not that I'm aware of.

    – Jax
    Jun 28 '16 at 18:27



















  • i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

    – MonsterMMORPG
    Jun 28 '16 at 13:23











  • @MonsterMMORPG not that I'm aware of.

    – Jax
    Jun 28 '16 at 18:27

















i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

– MonsterMMORPG
Jun 28 '16 at 13:23





i wish it has more elegant solution via an embedded class. so bootstrap does not have such class to rotate right?

– MonsterMMORPG
Jun 28 '16 at 13:23













@MonsterMMORPG not that I'm aware of.

– Jax
Jun 28 '16 at 18:27





@MonsterMMORPG not that I'm aware of.

– Jax
Jun 28 '16 at 18:27


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f18609819%2fhow-to-flip-glyphicon-icon%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine