Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
css
.container {
text-align: center;
}
.textcontainer {
text-align: left;
margin-left:auto;
marign-right: auto;
}
html
<div class="container">
<img src="" />
<div class="textcontainer">
qwertz
qwertz
qwertz
</div>
</div>
<div class="paddingbox contentbox">
{foreach from=$random_images item=random_image name=image_loop}
<div style="margin-bottom:12px; text-align:left; margin:auto auto;">
<a href="detail.php?location={$random_image.location_id}"><img src="image.php?action=t&img={$random_image.image_name}" width="100" height="100" style="margin: 0px 4px; padding: 4px;" /></a><br />
<a href="detail.php?location={$random_image.location_id}">{$random_image.location_name}</a><br />
<a href="area.php?area={$random_image.area_ID}">{$random_image.area_name}</a><br />
{$random_image.country_name} <img src="images/flags/png/{$random_image.country_code}.png" style="margin-left:4px;" width="16" height="11" alt="{$random_image.country_code}" />
</div>
{/foreach}
</div>
div.paddingbox {
padding: 8px;
}
div.contentbox {
background: #fff;
margin-bottom: 8px;
}
Die Frage ist, ob der Text nur maximal so breit, wie das Bild sein darf oder ob der Text nur links mit dem Bild fluchten soll?
der text kann auch breiter als das bild werden. es müsste doch eine elegante lösung mit css geben?