Ich möchte gerne jedem einzelnen Listenpunkt zwei Hintergrundgrafiken (obere runde Ecken + untere runde Ecken) zuweisen, damit jeder einzelne Listenpunkt in einer Box mit runden Ecken angezeigt wird. Kann mir jemand helfen, wie ich das umsetzen kann?
Bisher habe ich lediglich die gesamte Liste mit runden Ecken versehen können.
Code
div#main div.big-box-top { width: 640px; height: auto; background: url(img/big-top.png) top no-repeat #ffffff; margin-bottom: 20px; padding-top: 10px; }
div#main div.big-box-bottom { width: 640px; height: auto; background: url(img/big-bottom.png) bottom no-repeat; padding-bottom: 10px; }
div#comment ol { margin: 0 10px; padding: 0; list-style: none; }
PHP
<div class="big-box-top">
<div class="big-box-bottom">
<?php $comments = array_reverse($comments, true); ?>
<ol>
<?php foreach ($comments as $comment) : ?>
<li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
<u><strong><?php comment_author_link() ?></strong> - <?php comment_date('j. F Y') ?></u>
<?php comment_text() ?>
</li>
<?php endforeach; /* end for each comment */ ?>
</ol>
</div>
</div>
Alles anzeigen