Ich bin neu in CSS, und ich habe in den vorherigen Foren zu diesem Thema Hilfe gesucht. Ich denke, ich mache alles richtig, aber meine schwebenden Elemente werden nach links gezogen.Meine floated Elemente werden zu weit nach links gezogen
Hier ist mein Code:
div {
display: block;
}
.grid {
width: 660px;
position: relative;
float: left;
padding-bottom: 10px;
clear: left;
}
.home {
text-align: center;
float: left;
width: 33.3333333%;
position: relative;
padding: 25px;
}
.third {
display: inline-block;
position: relative;
float: left;
height: 150px;
width: 150px;
border-radius: 25px;
}
.third img {
float: left;
position: relative;
}
Und mein html:
<div class="grid">
<article class="home">
<article class="third">
<img src="" /></article>
</article>
<article class="home">
<article class="third">
<img src="" /></article>
</article>
<article class="home">
<article class="third">
<img src="" /></article>
</article>
</div>
Hilfe bitte!
was sind alle Elemente floated ?? –
Was erwarten Sie von ihm? – Gacci
können Sie etwas mehr erklären –