Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Logo Overlay – Z INDEX – Photography Page – SOLVED.

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #41391
    hendrix940
    Participant

    Hi all, I’m trying to overlay a logo on top of the bottom right corner of the main photo gallery slider and having no success!!

    I have uploaded the logo and saved in a .png format with a transparent background:

    And here is the site:

    Thanks so much for the help!!

    #117745
    David_Leitch
    Participant

    Hi there,

    I’ve just had a play around with it on [CodePen](http://codepen.io/joe/pen/kLBnrhttp://codepen.io/joe/pen/kLBnr”), using absolute positioning to get it in the right spot, while maintaining responsiveness. Not sure if it’s exactly what you’re after but could serve as a starting point :)

    Perhaps there’s a better solution that doesn’t use absolute positioning?

    #117739
    stevencrader
    Member

    You could try this.

    Add the image right before the Nivo Slider div

    Give the image a class. I used image-overlay and apply the following style:

    .image-overlay{
    position: absolute;
    z-index: 9999;
    top: 575px;
    right: 70px;
    }

    #118386
    shashi5g
    Member

    thanks
    stevencrader

    #118406
    David_Leitch
    Participant

    I will just note that instead of positioning the logo from the top as Steven has done, I would position it from the bottom, as I did in [my version](http://codepen.io/David_Leitch/pen/orhichttp://codepen.io/David_Leitch/pen/orhic”). By doing this, it will stay in the correct position, even if you change the dimensions of the photo/container

    #118624
    hendrix940
    Participant

    @stevencrader and @david_leitch … thank you both. I’ll be trying both versions right now!!

    #118655
    hendrix940
    Participant

    Does anyone know how to change the opacity of the image? @stevencrader or @david_leitch? Thanks!

    #118658
    stevencrader
    Member

    @hendrix940

    The point David makes is a great one if you are going to have different sized images or make the site responsive.

    Opacity of which image? The logo or the gallery images?

    #118679
    hendrix940
    Participant

    The logo sir.

    #118685
    stevencrader
    Member

    Use the opacity tag: `opacity: .3;` The number must be between 0 and 1.

    Word of warning: when using the opacity tag anything inside of the tag will receive the opacity. It isn’t a big deal with the img tag but is if used on a div with elements inside.

    #118715
    hendrix940
    Participant

    Great! Thanks @stevencrader!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.