Skip to content

CSS codes for fa-info icon

Solved Customisation
9 2 3.1k 1
  • wrote on last edited by
    #1

    Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
  • Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
    wrote on last edited by
    #2

    @crazycells hi. Can you supply your site url so I can have a look ? Either here or via PM if you’d prefer.

  • Hi @phenomlab , how are you?

    I have an info icon because of the glossary plugin, however, the icon is not at the place where I want it to be… I made it smaller with this code, however, I also want to change its position, I think I prefer it further above, on the upper right corner of the word. Do you know which codes should I use?

    Screen Shot 2022-01-30 at 4.55.37 PM.png

    .glossary-wrapper {
        .fa-info {
            font-size: .500em;
        }
    }
    
    wrote on last edited by
    #3

    @crazycells Something like this would probably do it. Sadly, it requires position: absolute and you will need to play around with this to get the desired effect you are looking for, but it does work

    .glossary-wrapper .fa-info {
        font-size: .5em;
        display: inline-block;
        position: absolute;
        margin-left: -5px;
    }
    

    0723b195-74da-4ed3-8b85-be8499ea1ff9-image.png

  • @crazycells Something like this would probably do it. Sadly, it requires position: absolute and you will need to play around with this to get the desired effect you are looking for, but it does work

    .glossary-wrapper .fa-info {
        font-size: .5em;
        display: inline-block;
        position: absolute;
        margin-left: -5px;
    }
    

    0723b195-74da-4ed3-8b85-be8499ea1ff9-image.png

    wrote on last edited by
    #4

    @phenomlab yes, thanks a lot. this works 👍

  • crazycells crazycells has marked this topic as solved on
  • wrote on last edited by
    #5

    hi @phenomlab , I have a follow up question about the glossary plugin… is there any way to target the underlying “…” I want them smaller and maybe will change the color… I could not identify the specific class to target…

    Screenshot 2024-03-22 at 17.25.10.png

  • hi @phenomlab , I have a follow up question about the glossary plugin… is there any way to target the underlying “…” I want them smaller and maybe will change the color… I could not identify the specific class to target…

    Screenshot 2024-03-22 at 17.25.10.png

    wrote on last edited by phenomlab
    #6

    @crazycells You can find that here

    .glossary-wrapper .glossary-word {
        text-decoration: underline;
        text-decoration-style: dotted;
    }
    

    Specifically, you want to either remove or change the text-decoration-style value 🙂

  • @crazycells You can find that here

    .glossary-wrapper .glossary-word {
        text-decoration: underline;
        text-decoration-style: dotted;
    }
    

    Specifically, you want to either remove or change the text-decoration-style value 🙂

    wrote on last edited by
    #7

    @phenomlab thank you very much 👍

  • @phenomlab thank you very much 👍

    wrote on last edited by
    #8

    @phenomlab it looks like I am going with wavy… at least it does not interfere with the visibility of the word…

    Screenshot 2024-03-23 at 14.17.22.png

    is there any way to target the wave line only, and not the word? I am trying to change the color of the wavy line, but the code changes the color of the word too…

  • wrote on last edited by
    #9

    I have just figured it out…

    it can be targeted with text-decoration-color:

    I was mistakenly using color


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Opening links in nodebb widget

    Solved Configure nodebb
    6
    4 Votes
    6 Posts
    3k Views
    phenomlab
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • Want to use Sudonix themes ?

    Chitchat themes nodebb
    80
    1
    34 Votes
    80 Posts
    30k Views
    cagatay
    omg thank you Mark.
  • optional "snow falling" theme

    Solved Customisation nodebb
    6
    6 Votes
    6 Posts
    2k Views
    phenomlab
    @Sala ok, but that’s still the same loop which is going to have an impact on the CPU.
  • 4 Votes
    8 Posts
    5k Views
    phenomlab
    @DownPW done
  • [NODEBB] Help for my custom CSS

    Solved Customisation nodebb css bugfix
    258
    49 Votes
    258 Posts
    168k Views
    cagatay
    mark hi, Refused to apply style from ‘https://efelsefe.com/assets/customfonts/FontAwesome-6-Pro/pro/css/v4-font-face.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. I keep getting this error.
  • Border Frame WYSIWYG CSS

    Solved Customisation css wysiwyg
    6
    1
    2 Votes
    6 Posts
    2k Views
    phenomlab
    @DownPW just circling back to this, as I did eventually find the class. Seems you can disable the outline using the below CSS textarea { outline: none; }
  • Display tweets in widget [NodeBB]

    Solved Customisation
    29
    4 Votes
    29 Posts
    13k Views
    JAC
    @phenomlab brilliant, many thanks Mark
  • CSS Help on my Flarum

    Solved Customisation
    5
    2
    2 Votes
    5 Posts
    3k Views
    phenomlab
    @mike-jones Yes, you’ll typically see this type of behaviour if there is another style that has higher priority in the sense that yours will be overridden. Using !important will override the higher preference, but should be used sparingly rather than everywhere.