Problem with Bootstrap Resizing

Asked

Viewed 295 times

0

I’m having the following problem I’m ultilizing bootstrap in version 3 need my page to look like this template: inserir a descrição da imagem aqui but when I redeem my images they look like this: inserir a descrição da imagem aqui

I would like the black image to be below the image of the wine glass but to take 100% wide both the top and bottom realize that when I redeem they are crooked and do not follow the pattern I want to follow my codes:

the HTML:

 <div class="row container-fluid text-center general">
       <div class=" col-sm-5 col-sm-offset-1 banner-wine">
          <img src="images/taca.png" alt="novidades de vinhos pedro carvalho" />
       </div>
       <div class=" col-sm-6 bg-cadastro">
         <img src="images/novidades.png">
         <h3>eventos,degustações e promoções</h3>
         <p>Receba convites para eventos,degustações e informações sobre 
         tudo o que acontece na terra a terra e no mundo do vinho</p>
         <form>
            <input type="text" id="email" name="email" placeholder="e-mail">
            <button>cadastrar</button>
          </form>
       </div>
     </div>

the CSS: banner-Wine{ max-width: 100%; }

.bg-cadastro{
    background-color: @colorButtonDark;
    width: 549px;
    max-width: 100%;
    height: 407px;
    max-height: 480px;
    padding-top: 80px;
    h3{
        color: @colorHovers;
        .fontInfos(1em);
    }p{
        width: 300px;
        max-width: 80%;
        margin: 0 auto;
        color: @colorLinks;
    }
}

    form {
        border: 1px solid @colorLinks;
        padding: 15px;
        margin: 40px auto;
        width: 390px;
        max-width: 100%;
        #email{
            border: none;
            outline: none;
            margin-right: 50px;
            background-color: transparent;
        }button{
            background-color: transparent;
            border: none;
            outline: none;
            color: @colorLinks;
            .fonts(1em);
            text-transform: uppercase;
        }:before{
            content: '|';
            padding-right: 30px;
        }::-webkit-input-placeholder {
           color: @colorLinks;
           text-transform: uppercase;
        }:-moz-placeholder {
           color: @colorLinks;  
           text-transform: uppercase;
        }
    }

NOTE: remembering that I am also ultilizando Less

  • 1

    From a class to the image called img-responsive

  • @Miguel face this class helped me a little but she messed up what she had done and kind of dislodged the image that was together in the background-color as it was in the first image of the post

  • 1

    I think this is from the off-set that has

  • it still hasn’t worked

  • Do not try to create the structure of your page in hand, the bootstrap grids are just there to help you in this painful task!

2 answers

1


I would do so

<div class="row container-fluid text-center general">
       <div class="col-xs-12 col-sm-5 col-sm-offset-1 banner-wine">
          <img src="images/taca.png" alt="novidades de vinhos pedro carvalho"  style="width: 100%;" />
       </div>
       <div class="col-xs-12 col-sm-6 bg-cadastro">
         <img src="images/novidades.png" style="width: 50%; margin-left: 25%;">
         <h3 class="text-center">eventos,degustações e promoções</h3>
         <p>Receba convites para eventos,degustações e informações sobre 
         tudo o que acontece na terra a terra e no mundo do vinho</p>
         <form>
            <input type="text" id="email" name="email" placeholder="e-mail">
            <button>cadastrar</button>
          </form>
       </div>
     </div>

Take a test.

  • Please learn to use the text marker, because if the code does not appear on the page, I already edited the answer anyway :)

1

Try it like this

<div class="container">
 <div class="row text-center general">
   <div class=" col-md-12 banner-wine">
      <img class="img-responsive" src="images/taca.png" alt="novidades de vinhos pedro carvalho" />
   </div>
   <div class=" col-md-12 bg-cadastro">
     <img  class="img-responsive" src="images/novidades.png">
     <h3>eventos,degustações e promoções</h3>
     <p>Receba convites para eventos,degustações e informações sobre 
     tudo o que acontece na terra a terra e no mundo do vinho</p>
     <form>
        <input type="text" id="email" name="email" placeholder="e-mail">
        <button>cadastrar</button>
      </form>
   </div>
 </div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.