Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #322413

    Hi, I wonder if it’s possible to have the text in the Icon Box left aligned but the header in the box centered. I’ve found this class but if I set it to left it changes both the text and the header:
    #top .iconbox_top {
    text-align: centered;
    }

    Can you point out which CSS I can modify to achieve this?

    Thanks
    /Michael

    #322553

    Hi Michael!

    Try with this:

    #top .iconbox_content_title {
    text-align: centered;
    }

    Regards,
    Josue

    #322607

    Thanks Josue, that worked :-) One more thing, is it possible to have the headline centered on some boxes and left aligned on others? By giving them different classes or something. Depending on the layout of the page some boxes would look better with left and some with centered.

    /Michael

    • This reply was modified 10 years, 3 months ago by musklick.
    #322615

    Hi!

    Yes – you can add custom css classes to the elements. You just need to add one line of code to the theme functions.php file to activate this feature – see: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Best regards,
    Peter

    #332593

    Hi Peter, thanks for your reply. I’ve tried adding a custom css class to the icon box and it works but my class and CSS:
    #top .iconbox_top_metod {
    text-align: right;
    }
    is overruled by the original
    #top .iconbox_top {
    text-align: left;
    }
    Am I missing something? Hope you can help
    /Michael

    #332598

    Hey!

    Please add !important rule to the code as following

    #top .iconbox_top_metod {
    text-align: right !important;
    }

    Best regards,
    Yigit

    #332603

    Thanks Yigit!
    /Michael

    • This reply was modified 10 years, 2 months ago by musklick.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Icon box styling’ is closed to new replies.