Forums

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

Home Forums CSS CSS background images fit inside a empty div and be responsive.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #269626
    DavidAson
    Participant

    Moving from backend to the frontend, I was given a design and don’t know the best way to handle how to implement it. It’s gonna be about 6 or some images or layered. All Images are 1920px wide * X px high.

    I did a little fiddle so you can see what I’m working with. A few images are in there too.
    https://www.bootply.com/EEjlR9IaFN#

    So the problem is setting the width and height of the image/div causes it to extend outside of the bootstrap container and it’s not responsive.
    So that’s where I’m stuck, I can’t think of a way to make these images fit inside of this container and be responsive. I was gonna just use the img tag but would rather do it via css if I can

    #269641
    JeroenR
    Participant
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.