Hallo meine Lieben!
Ich bin relativ neu mit php, habe allerdings mein eigenes Bloglayout fast ohne Probleme (mit Hilfe eines Tutorials) zusammenschustern können. Habe nur ein kleines Problem, dass mich einfach nicht in Ruhe lässt.
Wie bei diesem Bild zu sehen ist, habe ich in meiner Postvorschau und bei meinen Single Posts das Problem, dass es keinerlei Platz zwischen dem Thumbnail und dem Text gibt.
Ich habe bereits versucht, das Problem mit CSS und Margin zu lösen, allerdings ohne Ergebnis. Hier der Code:
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<div id="meta">
<p>erstellt am: <?php the_date('d.m.Y'); ?> |
von: <?php the_author(); ?></p>
</div>
<div class="entry">
<div class="thumbnail"><?php if (has_post_thumbnail()) {the_post_thumbnail();} ?> </div> <br />
<?php the_content(); ?>
</div>
Alles anzeigen
Und im CSS:
#thumbnail {
margin: 10px;
}
Hat da vielleicht jemand eine schnelle Idee?