Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Icon font :before standard width

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #42572
    hurricanepkt
    Member

    http://codepen.io/anon/pen/mlHoi

    for some reason the E and F icon are different widths

    how should i set it so that all the text starts at the same indent

    Thanks

    #123813
    Paulie_D
    Member

    Your icon font wont show up in Codepen unless you web link in the actual font. Just calling it won’t work.

    #124062
    hurricanepkt
    Member

    thats unfortunate… seems to work in firefox. Chrome and Safari dont put a referer in the request header from codepen requests

    screenshot
    http://i.imgur.com/0kuyqNG.png
    and up to date codepen

    http://codepen.io/mark/pen/mlHoi

    #124063
    wolfcry911
    Participant

    inline elements won’t take a width. A simple fix is to declare the :before element display: inline-block; (and perhaps text-align: center;)

    #124065
    Paulie_D
    Member

    Interesting, I get the icons in FF but not in Chrome.

    Try adding

    display:inline-block;
    text-align:center;

    to the pseudo-element

    #124066
    Paulie_D
    Member

    @wolfcry911 Oh SNAP!

    #124076
    hurricanepkt
    Member

    you both rock! That was driving me crazy

    Thanks so much!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.