Font Awesome styling - Same icon different CSS -


i running road block styling font awesome icon in 2 places of site. have research particular topic , not have found answer.

the plus icon of fa-plus in 2 places of site, mobile menu , product detail page.

i position icon float: right on mobile menu not on product detail page. when implemented css code below, plus icon changed position on product detail page well. how can float icon on right , not other placement on site?

.fa { display: inline-block; font-family: fontawesome; font-style: normal; font-weight: normal; line-height: 1; float: right; }

thank you.

add second class markup of icon mobile menu, this:

<i class="fa fafloat"></i> 

then move float: right; out of .fa section, , place in new 1 so:

.fafloat {     float: right; } 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -