Forums

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

Home Forums CSS Creating gallery thumbnail: Getting translucent nested div box to snap to parent

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #257354
    CranberryJuice
    Participant

    Here is a fiddle https://jsfiddle.net/9yrrp4ju/

    I want to create a gallery thumbnail section but find that unless there’s a lot of content written inside of the p tag, the translucent box won’t reach the rhs of the image. This also is obvious with screen resolution changes. Any suggestions?

    #257355
    Beverleyh
    Participant

    The black caption bar/.thumb-overlay element? Try adding right:0; to it.

    #257361
    CranberryJuice
    Participant

    Hi Beverlyh,

    That didn’t seem to do the trick. I also updated the jsfiddle as I’ve made some changes.

    https://jsfiddle.net/45c5enxn/1/

    #257362
    Beverleyh
    Participant

    Yes it does https://jsfiddle.net/sn9ey5vp/1/ or do you mean something else?

    #257376
    CranberryJuice
    Participant

    Thank you for verifying. I don’t know why it didn’t work when I originally tried it out. Maybe a bad refresh. I tried it again and it works.

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