Guten Abend BugBuster,
das css macht Sinn, aber welches Modul muss ich einfügen, damit ein Element mit der Klasse clear von Contao generiert wird?
Du fragst, welches Grid ich bisher genutzt habe. Ich kopier dir das mal rein, davor ein Beispiel wie das html dazu aussieht:
HTML-Code:
<div class="row">
<div class="xs-4 small-12 medium-6 large-3 columns">
<p>Content</p>
</div>
</div>
Code:
* {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
.columns {
padding-left: 16px;
padding-right: 16px;
padding-left: 0.9375rem;
padding-right: 0.9375rem;
width: 100%;
float: left; }
}
.push {
float:right;
}
.row {
width:auto;
}
.row:before,
.row:after {
content:'';
display:table;
}
.row:after {
clear:both;
}
.row .row {
margin-left:-1em;
margin-right:-1em;
}
/*XS*/
@media screen and (max-width:499px) {
.xs-1 {
width: 25%;}
.xs-2 {
width: 50%;}
.xs-3 {
width: 75%;}
.xs-4 {
width: 100%;}
.xs-offset-1 {
margin-left: 25% !important; }
.xs-offset-2 {
margin-left: 50% !important; }
.xs-offset-3 {
margin-left: 75% !important; }
}
/* Small */
@media screen and (min-width:500px) and (max-width:799px) {
.small-1 {
width: 8.33333%; }
.small-2 {
width: 16.66667%; }
.small-3 {
width: 25%; }
.small-4 {
width: 33.33333%; }
.small-5 {
width: 41.66667%; }
.small-6 {
width: 50%; }
.small-7 {
width: 58.33333%; }
.small-8 {
width: 66.66667%; }
.small-9 {
width: 75%; }
.small-10 {
width: 83.33333%; }
.small-11 {
width: 91.66667%; }
.small-12 {
width: 100%; }
.small-offset-0 {
margin-left: 0% !important; }
.small-offset-1 {
margin-left: 8.33333% !important; }
.small-offset-2 {
margin-left: 16.66667% !important; }
.small-offset-3 {
margin-left: 25% !important; }
.small-offset-4 {
margin-left: 33.33333% !important; }
.small-offset-5 {
margin-left: 41.66667% !important; }
.small-offset-6 {
margin-left: 50% !important; }
.small-offset-7 {
margin-left: 58.33333% !important; }
.small-offset-8 {
margin-left: 66.66667% !important; }
.small-offset-9 {
margin-left: 75% !important; }
.small-offset-10 {
margin-left: 83.33333% !important; }
.small-offset-11 {
margin-left: 91.66667% !important; }
}
/* Medium */
@media screen and (min-width:800px) and (max-width:1299px) {
.medium-1 {
width: 8.33333%; }
.medium-2 {
width: 16.66667%; }
.medium-3 {
width: 25%; }
.medium-4 {
width: 33.33333%; }
.medium-5 {
width: 41.66667%; }
.medium-6 {
width: 50%; }
.medium-7 {
width: 58.33333%; }
.medium-8 {
width: 66.66667%; }
.medium-9 {
width: 75%; }
.medium-10 {
width: 83.33333%; }
.medium-11 {
width: 91.66667%; }
.medium-12 {
width: 100%; }
.medium-offset-0 {
margin-left: 0% !important; }
.medium-offset-1 {
margin-left: 8.33333% !important; }
.medium-offset-2 {
margin-left: 16.66667% !important; }
.medium-offset-3 {
margin-left: 25% !important; }
.medium-offset-4 {
margin-left: 33.33333% !important; }
.medium-offset-5 {
margin-left: 41.66667% !important; }
.medium-offset-6 {
margin-left: 50% !important; }
.medium-offset-7 {
margin-left: 58.33333% !important; }
.medium-offset-8 {
margin-left: 66.66667% !important; }
.medium-offset-9 {
margin-left: 75% !important; }
.medium-offset-10 {
margin-left: 83.33333% !important; }
.medium-offset-11 {
margin-left: 91.66667% !important; }
}
/* Large */
@media screen and (min-width:1300px) {
.large-1 {
width: 8.33333%; }
.large-2 {
width: 16.66667%; }
.large-3 {
width: 25%; }
.large-4 {
width: 33.33333%; }
.large-5 {
width: 41.66667%; }
.large-6 {
width: 50%; }
.large-7 {
width: 58.33333%; }
.large-8 {
width: 66.66667%; }
.large-9 {
width: 75%; }
.large-10 {
width: 83.33333%; }
.large-11 {
width: 91.66667%; }
.large-12 {
width: 100%; }
.large-offset-0 {
margin-left: 0% !important; }
.large-offset-1 {
margin-left: 8.33333% !important; }
.large-offset-2 {
margin-left: 16.66667% !important; }
.large-offset-3 {
margin-left: 25% !important; }
.large-offset-4 {
margin-left: 33.33333% !important; }
.large-offset-5 {
margin-left: 41.66667% !important; }
.large-offset-6 {
margin-left: 50% !important; }
.large-offset-7 {
margin-left: 58.33333% !important; }
.large-offset-8 {
margin-left: 66.66667% !important; }
.large-offset-9 {
margin-left: 75% !important; }
.large-offset-10 {
margin-left: 83.33333% !important; }
.large-offset-11 {
margin-left: 91.66667% !important; }
}
Lesezeichen