New Landing How can we help? Atelier Modal from an Image

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #227153
    andy_lymeterrace
    Member
    Post count: 58

    Hello guys,

    Is it possible to make an image trigger a modal box to appear?

    #227171
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Not currently, but something that has been requested a lot. Will let the developer know

    – Kyle

    #227737
    andy_lymeterrace
    Member
    Post count: 58

    Ok thanks

    #227745
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

    #228152
    andy_lymeterrace
    Member
    Post count: 58

    Hi Kyle,

    Another question on Modals – I would like to change the background colour of a modal to black. Is this possible?

    #228153
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .modal-body {
      background-color: #000;
      color: #fff;
    }

    – Kyle

    #228155
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this code:-

    .modal-header,.modal-content{
    background:#000 !important;
    color:#fff !important;
    }

    Thanks
    Mohammad

    #228161
    andy_lymeterrace
    Member
    Post count: 58

    Hey guys,

    Any difference between the two? What does the important tag mean out of interest?

    #228165
    andy_lymeterrace
    Member
    Post count: 58

    There is also a padding around the content (and image in this case) in the modal, can I remove that?

    #228169
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    If you use all of this it should work:

    .modal-body {
      background-color: #000;
      color: #fff;
      padding:0;
    }
    .modal-header{
    background:#000 !important;
    color:#fff !important;
    }

    !important just forces the rule

    – Kyle

    #228177
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    The same elements can be target in different ways, so both can be correct.

    The important is used to give a kind of priority in that property if exists another rule that targets the same property.
    We have to use the important so our rule can be applied instead other existing rule, if our rule is the only one that targets a specific property then you don’t have to use the important.

    You can try first without the important to see if it works and then try with the important.

    -Rui

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