[Resolved] Font Awesome icon misplacement

Home Forums Support [Resolved] Font Awesome icon misplacement

Home Forums Support Font Awesome icon misplacement

  • This topic has 7 replies, 3 voices, and was last updated 6 years ago by Tom.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #540088
    Ricardo

    So as the title says, I am having a weird problem with font awesome icons. Here is my website https://racmma.com ; the first 3 icons that are on a colored circle container have some weird spacing on top of them, already tried to use the inspector to see what is that but no information about margin or padding, besides the ones that I set up on css. I was previously using hestia theme and managed to have this icons centered with my current css, so I don’t know what the problem may be. Awesome theme and features by the way Tom.

    #540372
    Leo
    Staff
    Customer Support

    Hi there,

    The 3 icons in the content?

    If so I’m not seeing anything weird about them. Only the CSS you’ve added:
    http://www.screencast.com/t/SBe4gpGG0IMh

    Those are also added with BB so GP has no control over it.

    Let me know if this helps.

    #540376
    Ricardo

    Yes the 3 font awesome icons have some weird “spacing” at the top of the icon container itself ( the span tag ). You actually need to inspect the icon so you can see what I mean, they are not centered but seems like they have some kind of offset in the y axis.

    edit : http://www.screencast.com/t/sBaw3OapNLc.

    #540450
    Leo
    Staff
    Customer Support

    Hmm I see. That’s weird.

    Have you checked with BB yet?

    #540484
    Ricardo

    Yes I use BB to build my website, the thing is that with the previous theme I had (Hestia) the icons were right in the middle of the circle, so I don’t know if there is some css from gp that this icons are inheriting, I already tried something posted on stackoverflow about setting the container’s font size to 0 but didn’t work.

    #540540
    Tom
    Lead Developer
    Lead Developer

    Strange indeed. I couldn’t see any conflicting CSS causing it.

    Doing something like this should fix it:

    .service-icon:before {
        position: relative;
        top: -5px;
    }
    #540552
    Ricardo

    Great! is working now! Thanks Tom.

    #541125
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.