Forums

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

Home Forums CSS [SOLVED]bootstrap 3 responsive background issue

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #178043
    Jamie
    Participant

    I am using bootstrap 3. I tried setting a background image on a div and then making that background image responsive but it’s not working.

    I needed the full width. So I tried this

    `
    <div id=”header”>

    </div>

    //css
    #header {
    background: url(my image) repeat-x;
    max-width: 100%;
    max-height: 679px;
    `

    #178044
    Jamie
    Participant

    Looks like I figured it out.

    min-height: 679px;
    background-size: contain;

    #206842
    Linoz Oz
    Participant

    Thx soo much I’ve been looking for a solution all day long :D

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