Wie kann ich automatische Zeilenumbrüche auf mobilen Geräten einrichten? Im Moment sieht mein Code wie: HTMLBootstrap responsive auf mobilen Geräten
<div class="container-fluid bg-1 text-center">
<h2>MessageOfTheDay</br>
</br></h2>
<p style="margin-bottom: 100px;">SOME LOREMIPSUMDOLORSITAMET,CONSECTETUR</p>
<h1 style="margin-bottom: 100px;">XXXXXX</br>
SOME LOREMIPSUMDOLORSITAMET,CONSECTETURSOME LOREMIPSUMDOLORSITAMET,CONSECTETUR</br>
SOME LOREMIPSUMDOLORSITAMET,CONSECTETURSOME LOREMIPSUMDOLORSITAMET,CONSECTETURSOME LOREMIPSUMDOLORSITAMET,CONSECTETUR</h1>
</div>
CSS
.bg-1{
background-color: black;
background-size: cover;
color: #ffffff;
height: auto;
min-height:620px;
padding:10px;
margin-top:0px;}
body {
font: 20px "Montserrat", sans-serif;
color: #f5f6f7;}
p {font-size: 20px;}
.margin {margin-bottom: 10px;}
h1,h2,h3{
margin-top: 0px;
margin-bottom: 0px;}
.container-fluid{
padding-top: 20px;
padding-bottom: 0px;}
h1{font-size: 50px;}
Wie kann ich Text beheben gestutzt? Ich möchte automatische Bremsleitung am Handy einstellen.
Ändern Sie die Schriftgröße, um es zu senken, ist es eine gute Praxis? @media nur Bildschirm und (max-Breite: 414px) { h1, h2 { Schriftgröße: 29px; } } – Wojtkovy
Das Problem ist, er will es einen Zeilenumbruch, keine Änderung der Schriftgröße. Das Ändern der Schriftgröße allein reicht nicht aus, um zu garantieren, dass die Linie "bricht". –