Forums

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

Home Forums CSS Bootstrap max width image header.

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #251947
    oj
    Participant

    Hello! I am new to bootstrap, i am trying to figure out how to get my header image with max width.
    So i set the div container with max-width: 1000px; I am okay with the padding on the sides but for my header image, i want to display that till my black background border.

    here is a picture: https://uploadpie.com/1piHoH

    and the code!

    https://codepen.io/anon/pen/QpwBdW

    #251948
    Paulie_D
    Member

    I’m really unclear on what it is you are trying to do.

    Is this mean to be a background image of the header? In that case it should be in the CSS…not the HTML.

    Also the “image” in the codepen doesn’t seem to be linked correctly.

    #251952
    oj
    Participant

    i created another picture.
    https://uploadpie.com/keOHlM

    As you can see the red header image is like a full width, that is what i am trying to make. i think there is a problem with the ”container div ” but i am not sure.
    Thanks

    #251957
    Paulie_D
    Member

    Yes…but is it meant a background image…it seems very large to be inline.

    #251958
    oj
    Participant

    Basically i just want to put that image like a header. No matter how large the picture I put in there always will be space in each side ( margins?!). I don’t want those spaces.

    #251960
    Paulie_D
    Member

    OK…but the Codepen still isn’t loading the image…but my guess is that you’ll need just to not use the column div to wrap the image…it’s not necessary…or at least not use the column class

    The div will be 100% wide by default.

    #251961
    Paulie_D
    Member
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.