New Landing How can we help? Atelier Image Banner Overlay Class

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Atelier
  • #261856
    BenNieIV
    Member
    Post count: 13

    I am trying to create a class to apply an overlay to specific image banners for better readability. I created a class and applied it to the image banner but I am not seeing any results. Any ideas? Is there any ready options for this or do I need a class like I am creating? I appreciate your help!

    .overlay30 .sf-image-banner>img:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        background: rgba(0, 0, 0, .3);
    }
    #262133
    David Martin – Support
    Moderator
    Post count: 20834

    Unfortunately, most browsers do not support using :after or :before on img tags.

    Thanks.

    #262247
    BenNieIV
    Member
    Post count: 13

    Okay.

    Can you add any suggestions on how to accomplish this with an image banner section?

    #262570
    David Martin – Support
    Moderator
    Post count: 20834

    Sure,

    Likely this:

    .sf-image-banner:before{}

    Thanks.

    #262576
    BenNieIV
    Member
    Post count: 13

    No luck with this selector either…

    #262577
    David Martin – Support
    Moderator
    Post count: 20834

    Did you add your class? Your CSS will also require a z-index change.

    It should be:

    .overlay30 .sf-image-banner:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        background: rgba(0, 0, 0, .6);
        z-index: 3;
    }
    #262592
    BenNieIV
    Member
    Post count: 13

    That worked perfect!

    Thank you sir!

    #262661
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks David

    – Kyle

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