Forums

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

Home Forums CSS Extra Space Below Background Image

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

    I have a background image 1780px x 700px and i am using bootstrap 3. When i am on high resolutions the image is displaying just fine. However, when i try to resize the browser an extra white space is created and messes up my design. I have set the display:block property but it does not change anything. Here’s a pic:

    http://s29.postimg.org/9z0k9hkjb/bac.jpg

    Some code:
    .intro {
    background-image: url(/img/banner-bg.jpg);
    background-repeat: no-repeat;
    height: 80%;
    background-attachment: fixed;
    background-position: center center;
    background-size: contain;

    #208369
    pantapanta1
    Participant

    Yes sure! Here’s a link: http://bit.ly/1FmRqmB
    Make sure you resize the browser to see the problem!

    #208389
    pantapanta1
    Participant

    Unfortunately even after deleting those media queries the space below the picture stays the same. The problem is that while the background picture is set with the background-size: contain the height of the intro div stays the same. I cannot use background-size: cover because it distorts and crops my picture. :(

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