New Landing How can we help? Themeforest Theme Support Dante Place a button always right bottom

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Dante
  • #274298
    Marine
    Member
    Post count: 151

    Hello,

    I have several pages for my associations, built with the same template. In the block “Chiffres clés” on the right of the association logo, I’like :
    – that the grey block is the same height as the logo
    – to position the call to action button always at the bottom right of the grey block, independently from the text size.
    All this must be responsive (before, I’ve added a height to the grey block but I guess it’s not the right solution), the button should always be inside the grey block, on a tablet portrait, my grey block may be bigger than the logo. Can you help? I add some print screen (1 = today, 2 = required)
    Thanks a lot guys!
    Nice day
    Marine

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

    Hi

    Please add an extra class to the grey box so I can provide you with some custom css

    – Kyle

    #275426
    Marine
    Member
    Post count: 151

    Done, it’s .chiffres

    #275439
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .chiffres .sf-button {
      margin: 0;
      position: absolute;
      right: 0;
      bottom: 0;
    }
    .chiffres .box-content-wrap {
      position: relative;
    }

    – Kyle

    #275449
    Marine
    Member
    Post count: 151

    OK thanks it works to have the button at the right place, tx. But to have the grey block with the same height as the logo area on the left, do I have to set up a fix height to my grey block? Height I’ll have to adapt for each device. Or is there another solution?

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

    Add this to your custom css:

    .chiffres .box-content-wrap {
      min-height: 330px;
    }

    Normally you would change it for different screen sizes, but on the next screen size down the content fills the box but so you can’t change the box height, but the image is not as tall as the box

    – Kyle

    #275477
    Marine
    Member
    Post count: 151

    Great Tx Kyle !

    #275480
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks Kyle
    -Rui

    #275483
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    #278467
    Marine
    Member
    Post count: 151

    Hey,

    when I check your solution on a mobile, the button covers the text end. I don’t understand why because it’s a min-height.
    Could you help? http://www.abracamundi.com/associations/bloom/
    Tx guys !!

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

    Adjust the min height for mobile:

    @media only screen and (max-width: 767px) {
    .chiffres .box-content-wrap {
        min-height: 640px;
    }
    }

    Thanks.

    #278905
    Marine
    Member
    Post count: 151

    Tx ! I have to read again my css guide, cause I thought that min-height was really minimum height, so if the bock needs more space in height on mobile, he can do it…

    #278907
    David Martin – Support
    Moderator
    Post count: 20834

    Great glad that helped you out.

    Thanks.

Viewing 13 posts - 1 through 13 (of 13 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