font-awesome

How to vertically align center a Font-Awesome icon with a line of text in Bootstrap 4?

筅森魡賤 提交于 2019-12-08 05:30:23
问题 I am trying to align a Font Awesome icon vertically center to a small block or line of text. Here's a picture of what I'm trying to achieve: This is the look I'd like to achieve The part of my webpage I am working on is seen here:This is the look my code currently produces. Note the unaligned FA icon , specifically, the code below is for the right side (column 2): <div class="col-12 col-md-6 col-lg-5"> <h4 class="text-center ">Honors and Awards</h4> <i class="fa fa-trophy fa-lg" aria-hidden=

Featured filled corner css

♀尐吖头ヾ 提交于 2019-12-08 04:37:36
问题 I'm trying to add a triangle with a star in it at the corner of an article in Joomla. This is my code: Html <div class="ribbon-wrapper-featured"> <div class="ribbon-featured"> <i class="fa fa-star"></i> </div> </div> Css /*corner ribbon*/ .ribbon-wrapper-featured { width: 50px; height: 50px; position: absolute; top: 0px; right: 0px; } .ribbon-featured { width: 0; height: 0; border-style: solid; border-width: 0 50px 50px 0; border-color: transparent #f1c40f transparent transparent; line-height

Change class on inactive icon - jquery

馋奶兔 提交于 2019-12-08 04:13:39
问题 I have two icons in a header that have dropdown menus that are toggled when clicked. Within each list item for each icon there is a 'i' tag which is Font Awesome for a down arrow. When each icon is clicked, the arrow changes to be pointing up by changing the class 'fa-chevron-down' to 'fa-chevron-up'. However, if I click the help icon, the help dropwdown slides down and if I then click the basket icon, the help dropdown slides up and the basket dropdown slides down. The arrows in the relevant

React-native use react-native-vector-icons in android module

≯℡__Kan透↙ 提交于 2019-12-08 03:45:11
问题 I'm writing a module for react-native that should run on android, I have to do so to take a react-native-vector-icons and switch it to the module to be able to use them as a Drawable image. To use the type of icons: FontAwesome, Entypo, Ionicons, MaterialIcons and etc. I found something like that, but I did not understand how it works or how to make it work in my case. Link: here @TargetApi(21) private Drawable generateVectorIcon(ReadableMap icon) { StrictMode.ThreadPolicy policy = new

Vertical align font awesome icon with text within <li>

。_饼干妹妹 提交于 2019-12-08 03:08:27
问题 I have a list that uses font awesome, hence its class is fa-ul : <ul class='fa-ul'> <li class='dept'><i class='fa-li fa fa-stop'></i><span>Management</span></li> <li class='dept'><i class='fa-li fa fa-stop'></i><span>Something else</span></li> </ul> The associated CSS is : li { font-size : 2em; margin: 1em 0; } I'd like the text and the stop-square to be vertically aligned. So far, it is not the case : See screenshot: I've tried to wrap the fa-icon and the text in a <div> element with

Font awesome Rails won't work after deploying. It looks like bad Unicode characters. Why?

夙愿已清 提交于 2019-12-07 22:43:06
问题 In my local machine fontawesome is working perfectly (Im using 4.1 gem). But when uploaded to Heroku it stops working. I looks like bad unicode characters. I have included the following line in config and precompiled assets but it didn't work : config.assets.paths << Rails.root.join(‘app’, ‘assets’, ‘fonts’) config.assets.precompile += %w( .svg .eot .woff .ttf ) Please look at this image : On the left is the problem. On the right is the correct version. What might be the problem? Here's the

Font Awesome error: downloadable font: rejected by sanitizer

倾然丶 夕夏残阳落幕 提交于 2019-12-07 20:17:41
问题 downloadable font: rejected by sanitizer (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:1) source: http://192.168.1.254/theme/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3 http://192.168.1.254/theme/font-awesome/css/font-awesome.min.css Line 4 I was keep getting above error. and i tried lots of stuff found on the internet. (hosting the fonts on own server) CORS issue MIME-type header config in web server Other combinations of HTTP headers and MIME-types

Change class on inactive icon - jquery

断了今生、忘了曾经 提交于 2019-12-07 18:20:29
I have two icons in a header that have dropdown menus that are toggled when clicked. Within each list item for each icon there is a 'i' tag which is Font Awesome for a down arrow. When each icon is clicked, the arrow changes to be pointing up by changing the class 'fa-chevron-down' to 'fa-chevron-up'. However, if I click the help icon, the help dropwdown slides down and if I then click the basket icon, the help dropdown slides up and the basket dropdown slides down. The arrows in the relevant icon also need to change with this - the arrow on the help icon would need to change to point down and

Use Font Awesome (5) icon in input placeholder text

做~自己de王妃 提交于 2019-12-07 15:51:47
I've come across many ways to solve this using Font Awesome < 5, but I can't seem to solve this in any way using Font Awesome 5. This is how many resources point to adding a Font Awesome icon in placeholder text. <input style="font-family:FontAwesome !important" type="text" placeholder="&#xf167"> Remember to not use the general "Font Awesome 5" font family, you need to specifically end with the branch of icons you're working with. Here i am working the "Brands" category. <input style="font-family:'Font Awesome 5 Brands' !important" type="text" placeholder="&#xf167"> For a more sophisticated

trying to replace fa awesome icon with img

爱⌒轻易说出口 提交于 2019-12-07 15:27:33
HTML for this.... <!-- Services --> <section id="services" class="row color" data-scroll-factor="0.7"> <div class="col-md-10 col-md-offset-1"> <div class="icon"><i class="fa fa-desktop"></i></div> <h1>Services</h1> <div class="section-content"> <p>Vibe Music Therapy provides music therapy interventions to a wide range of healthcare settings.<br>There are also a range or corporate CPD based training events that Vibe also get involved with.<br>Click on one of the relevent icons below to find about how we provide music therapy to the people we work with.</p> <div class="row"> <div class="col-md-4