html - Bootstrap - Text flows out container -


i'm building site bootstrap. @ 1 special page have strange problem: when opening page in big screen seems correct. if open small display text flows out of container. buttons (link buttons) have same problem. example - text flows out of container

the html code is:

<!doctype html>  <html>    <head>    <meta charset="utf-8">    <meta http-equiv="x-ua-compatible" content="ie=edge">    <meta name="viewport" content="width=device-width, initial-scale=1">    <!-- die 3 meta-tags oben *müssen* zuerst im head stehen; jeglicher sonstiger head-inhalt muss *nach* diesen tags kommen -->    <title>Österweb</title>      <!-- ubuntu font aus der google fonts api -->    <link href='https://fonts.googleapis.com/css?family=ubuntu' rel='stylesheet' type='text/css'>      <!-- bootstrap -->    <link href="css/bootstrap_mainindex.css" rel="stylesheet">      <!-- unterstützung für media queries und html5-elemente in ie8 über html5 shim und respond.js -->    <!-- achtung: respond.js funktioniert nicht, wenn du die seite über file:// aufrufst -->    <!--[if lt ie 9]>              <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>              <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>          <![endif]-->  </head>    <body>    <div class="container hvcenter">      <!-- container -->      <div class="row">        <!-- bootstrap row -->        <div class="col-lg-5">          <img src="img/logo.png" alt="logo" class="img-responsive">        </div>        <div class="col-lg-7">          <h1>welcome</h1>          <p>to show best content you, please chose 1 of following buttons.</p>          <a href="neu/index.html" class="btn btn-block btn-info btn-lg">are looking new car?<br>here find it.</a>          <a href="modern/index.html" class="btn btn-warning btn-block btn-lg">you searching used vehicle<br>we can show offers</a>          <a href="reseller/index.html" class="btn btn-block btn-success btn-lg">your car needs repair service?<br>take look!</a>        </div>      </div>    </div>      <!-- jquery (wird für bootstrap javascript-plugins benötigt) -->    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>    <!-- binde alle kompilierten plugins zusammen ein (wie hier unten) oder such dir einzelne dateien nach bedarf aus -->    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>  </body>    </html>

the generated css code bootstrap:

html, body {      height: 100%;      position: relative;  }    .container {      max-width: 85%;      border-radius: 36;      padding: 3em;      background-color: silver;  }    .hvcenter {      position: absolute;      top: 50%;      left: 50%;      transform: translate(-50%, -50%);  }    h1 {      font-size: @font-size-h1*2.5;      margin-top: -0.2em;  }    p {      font-size: @font-size-base*2;  }      img {      alignment-adjust: central;      vertical-align: middle;      text-align: center;  }

do know solution problem? thx every comment.

the text on buttons not wrapping. in other words, text appear on same line, unless add line break (as have done) rather going next line once text's container full. in order fix need add css attribute white-space:normal buttons. here code without fix: jsfiddle

here code fix: jsfiddle


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -