-
AuthorPosts
-
September 20, 2014 at 4:51 pm #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
/MichaelSeptember 21, 2014 at 3:41 am #322553Hi Michael!
Try with this:
#top .iconbox_content_title { text-align: centered; }Regards,
JosueSeptember 21, 2014 at 9:47 am #322607Thanks 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 11 years, 1 month ago by
musklick.
September 21, 2014 at 10:18 am #322615Hi!
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,
PeterOctober 8, 2014 at 5:59 pm #332593Hi 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
/MichaelOctober 8, 2014 at 6:03 pm #332598Hey!
Please add !important rule to the code as following
#top .iconbox_top_metod { text-align: right !important; }Best regards,
YigitOctober 8, 2014 at 6:15 pm #332603Thanks Yigit!
/Michael-
This reply was modified 11 years ago by
musklick.
-
This reply was modified 11 years, 1 month ago by
-
AuthorPosts
- The topic ‘Icon box styling’ is closed to new replies.
