Wie richte ich Text unter Bild so aus? Wie richte ich Text inline mit Bild aus?
Hier Code: https://jsfiddle.net/vzjj9eLy/
html:
<span class="test">
<img src="http://cdn.sstatic.net/Sites/stackoverflow/img/[email protected]?v=73d79a89bded&a" alt="asd" width="316" height="316">
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever since
the 1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book.
</span>
css:
.test{
display:block;
}
.test img{
display:block;
position: relative;
left: 50px;
}
Ich habe dich nicht bekommen. Versuchen Sie, das Bild mit CSS zu ändern? –
Zum img hinzufügen 'margin: 0 auto;' –
move text from span ... dann wird es auf der gesamten Breite des übergeordneten Elements sein – demo