Beispiel:Overflow-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche

<!DOCTYPE html> <html> <head>

 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <link rel="stylesheet" href="./Beispiel:Grundlayout.css">
 <title>overflow</title>
 <style>
  1. eins { overflow: visible; }
  2. zwei { overflow: scroll hidden; scrollbar-color:#c82f04 white; }
  3. drei { overflow: hidden; }

.box { color: #c82f04; font-family: Arial, Helvetica, sans-serif;

 font-size: 3em;

font-weight: bold;

 border: medium solid black;
 padding: 3px;
 width: 150px;

}

body{

 display: grid;
 grid-template-columns: repeat(auto-fill, 16em);

}

h1 { grid-column: 1 / -1; }


 </style>	

</head>

<body>

Übergroßen Inhalt mit overflow regeln

<figure>

CSS is awesome!

<figcaption>overflow: visible;</figcaption> </figure>

<figure>

CSS is awesome!

<figcaption>overflow: scroll;</figcaption> </figure>

<figure>

CSS is awesome!

<figcaption>overflow: hidden;</figcaption> </figure>

</body> </html>