New Landing How can we help? Themeforest Theme Support Dante Center align icons

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #248083
    mstookey
    Member
    Post count: 14

    Hi,
    I can’t figure out how to center align large icons over text. float:none doesn’t seem to do anything and it ignores any alignment I assign it in the text box.

    #248141
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    .sf-icon-cont.cont-large{
    margin-left:65px !important;
    }
    

    Thanks
    Mohammad

    #248322
    mstookey
    Member
    Post count: 14

    Thanks Mohammad. That looks great in my browser but not aligned with text below on my iphone. See attachment for screenshot.

    Attachments:
    You must be logged in to view attached files.
    #248336
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    No need for that css, just set text align to center

    – Kyle

    #248361
    mstookey
    Member
    Post count: 14

    Hi Kyle,

    That’s what I would have thought too but it doesn’t work. I removed the extra css, and the text is center aligned but it doesn’t work. See screenshot.

    Attachments:
    You must be logged in to view attached files.
    #248377
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add the extra class ‘icon-centre’ to the text boxes, then add this to your custom css:

    .icon-centre {
      text-align: center;
    }
    .icon-centre .sf-icon-cont {
      margin-right: 0;
    }

    – Kyle

    #248383
    mstookey
    Member
    Post count: 14

    That did it! Thank you very much.

    #248426
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks to Kyle.
    Mohammad

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register