New Landing How can we help? Atelier Vertical align text in image banner issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #282699
    adriboixet
    Member
    Post count: 41

    Hi!

    I copy and paste this code in html menu, but text “MEN” doesn’t align vertically center. Why??

    [spb_image_banner image="171" image_size="full" fixed_height="220" content_pos="center" content_textalign="center" animation="fadeInUp" animation_delay="200" image_link="#" link_target="_self" width="1/1" el_position="first last" el_class="menunopadding"]
    <h1>MEN</h1>
    [/spb_image_banner]

    The same code in normal page it works, but in menu no.

    Attachments:
    You must be logged in to view attached files.
    #282704
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Please test this in Theme Options => Custom CSS:

    .menu-item .image-banner-content.content-center {
        top: 26%;
    }
    #282707
    adriboixet
    Member
    Post count: 41

    Yeah thanks!!!

    #282712
    David Martin – Support
    Moderator
    Post count: 20834

    Great, no problem.

    Thanks.

    #282933
    adriboixet
    Member
    Post count: 41

    It’s possible to make one column width to 70% and other column 30%?

    #283209
    David Martin – Support
    Moderator
    Post count: 20834

    Not as such, you will want to customise the CSS. This is the CSS:

    li.menu-item.sf-mega-menu[data-megamenucols="2"]>ul.sub-menu>li:first-of-type {
        width: 70%!important;
    }
    
    li.menu-item.sf-mega-menu[data-megamenucols="2"]>ul.sub-menu>li:nth-of-type(2) {
        width: 30%!important;
    }

    Ideally you should add a custom class the parent item menu item, then prefix the above CSS with the custom class.

    Thanks.

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

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

License required for one of the following items
Login and Registration Log in · Register