English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Jumbotron Bootstrap4

Il jumbotron (schermo extra-large) crea una scatola di sfondo grigia grande, all'interno della quale è possibile impostare contenuti e informazioni speciali.

Suggerimento: All'interno del jumbotron possono essere inseriti tag HTML o elementi di Bootstrap.

Possiamo creare un jumbotron aggiungendo la classe .jumbotron all'elemento <div>:

<!DOCTYPE html>
<html>
<head>
  <title>Bootstrap esempio</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
  <div class="jumbotron">
    <h1>Manuale di base (oldtoolbag.com)</h1> 
    <p>Impara le basi per andare più lontano!!!</p> 
  </div>
  <p>Questo è un testo.</p>      
  <p>Questo è un testo.</p>      
</div>
</body>
</html>
Prova a vedere ‹/›

Jumbotron a schermo intero

Se desideri creare uno schermo intero senza angoli arrotondati, aggiungi .container o .container-fluid classe per implementare:

<!DOCTYPE html>
<html>
<head>
  <title>Bootstrap esempio</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
  <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
  <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1>Manuale di base (oldtoolbag.com)</h1> 
    <p>Impara le basi per andare più lontano!!!</p>
  </div>
</div>
<div class="container">
  <p>È un testo.</p>      
  <p>È un testo.</p>      
</div>
</body>
</html>
Prova a vedere ‹/›