Hi,
ich benutze für meinen Blog MyGallery und habe folgendes Problem:
Unter dem ersten Bild ist jedes Mal zu viel Freiraum und ich kann mir nicht erklären woher der kommt.
Könnt ihr mir bitte helfen?
Der Quelltext der entsprechenden Stelle
Code
<div id="content">
<h1>Main Contents</h1><div class="post" id="post-181">
<h2><a href="http://blog.ben-inside.de/2007-07-21/produkttest-zicplay-ewoo-mit-click-wheel/" rel="bookmark" title="Permalink: Produkttest Zicplay ewoo mit Click Wheel">Produkttest Zicplay ewoo mit Click Wheel</a></h2>
<!-- google_ad_section_start -->
<div class="myinlinepicture" style="width:500px">
<div class="myinlineborder" style="width:500px"><img class="myinlinepictureimg" src="http://blog.ben-inside.de/wp-content/myfotos/zicplay_ewoo_2007/Zicplay_Banner.jpg" alt="Zicplay ewoo - Banner" title="Zicplay ewoo - Banner" width="500" height="200" /></div>
</div>
<p><br style="clear:both"/>Nach einer etwas längeren Testpause, konnte ich vor einigen Tagen wieder einen ausführlichen Produkttest durchführen. Von Format bekamen wir freundlicherweise das Testgerät – ewoo der schweizer Firma <a href="http://www.zicplay.com/" title="http://www.zicplay.com/" target="_blank" class="liexternal">Zicplay</a> aus Preverenges - zur Verfügung gestellt. Es ist ein iPod-Dock mit Fernbedienung. Nun werden wieder einige sagen, dass es derartiges wie Sand am Meer gibt, doch dieses soll sich von der Masse abheben. Wie dies die schweizer Newcomer auf dem stark umkämpften Markt rund um iPod-Zubehör erreichen wollen und ob es ihnen gelingt, erfahrt ihr in meinem Produkttest.<br />
<span id="more-181"></span><br />
Alles anzeigen
Die CSS-Datei von mygallery:
Code
/* default style for myGallery */
.mypicbox {
margin-top: 10px;
margin-bottom: 30px;
}
.mypicup {
}
.mygalleryup {
padding-top: 10px;
}
.mypicture {
text-align: center;
margin: auto;
}
.myfooter {
text-align: center;
}
.mypicback {
float: left;
}
.mypicfor {
float: right;
}
.mypicsgallery {
text-align: center;
margin-top: 10px;
}
.mygallpic {
margin-bottom:1px;
padding: 2px;
}
.mypicsgallery a img {
border: 2px solid #fff;
padding: 5px;
}
.mypicsgallery a:hover img {
border: 1px solid #666;
padding: 5px;
}
.myrandompic img {
padding:5px;
border: 1px solid #333;
background: #fff;
}
.mygalleryoverview {
margin-top: 10px;
}
.mygallerygallery {
height: auto;
background: #eee;
padding: 5px;
margin-bottom: 5px;
border: 1px solid #ccc;
}
.mygallerynames {
text-align: left;
font-family: tahoma, arial, verdana, sans-serif;
font-weight: bold;
font-size: 14px;
margin-bottom: 10px;
color: #333;
}
.mygallerypreviewpics {
float: left;
margin-right: 12px;
}
.mygallerydescription {
text-align: left;
font-size: 12px;
}
.mypicboxentry {
margin-top: 10px;
margin-bottom: 10px;
}
.mypictureentry {
text-align: center;
margin: auto;
}
.mypicsgalleryentry {
text-align: center;
}
.mygallpicentry {
margin-bottom:0px;
}
.mypicsgalleryentry a img {
border: 2px solid #fff;
padding: 1px;
}
.mypicsgalleryentry a:hover img {
border: 1px solid #ccc;
padding: 1px;
}
.myinlinepicture {
text-align:center;
margin-top:10px;
}
.myinlinepictureleft {
float:left;
padding-right:10px;
margin-top:10px;
}
.myinlinepictureright {
float:right;
padding-left:10px;
}
.myinlinepictureleftclear {
float:left;
padding-right:10px;
padding-top: 10px;
}
.myinlinepicturerightclear {
float:right;
padding-left:10px;
padding-top: 10px;
}
.myinlinepicdescription {
text-align:center;
font-size: 14px;
margin-bottom: 2px;
}
.myinlinepictureimg {
border:0px;
}
.mypictureentryimg {
border:0px;
}
.mygallerypreviewpics img {
border:0px;
}
.gallerynav {}
.galleryfor {
float: right;
}
.galleryback {
float: left;
}
.thumbsnav {}
.thumbsfor {
float: right;
}
.thumbsback {
float: left;
}
.thumbscounter {
color: #333;
text-align: center;
font-size: 10px;
font-family: tahoma, arial, verdana, sans-serif;
}
.mypiccounter {
color: #333;
text-align: center;
font-size: 10px;
font-family: tahoma, arial, verdana, sans-serif;
}
.galcounter {
color: #333;
text-align: center;
font-size: 10px;
font-family: tahoma, arial, verdana, sans-serif;
}
.transparent {
color: #fff;
}
Alles anzeigen
single.php
PHP
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<?php link_pages('<p><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
<div class="feedback2">
<dl>
<dt>Info: </dt>
<dd><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a> ist der <?php the_ID(); ?>. Artikel</dd>
<dt>Autor: </dt>
<dd><?php the_author(); ?> am <?php the_date(); ?> um <?php the_time(); ?></dd>
<dt>Mehr Infos: </dt>
<dd><?php if (function_exists('sayfa_sayac')) : ?>
<?php sayfa_sayac(1, 1, 1, 1, 1, '', '',' · ', '', '') ; ?>
<?php endif; ?></dd>
<dt>Kategorie(n): </dt>
<dd><?php the_category(','); ?></dd>
<dt>Tag(s): </dt>
<dd><?php if (function_exists('STP_PostTags')) {STP_PostTags();} else {echo 'Plugin deaktiviert';} ?></dd>
<dt>Meta: </dt>
<dd><?php comments_rss_link('Kommentar RSS abonnieren'); ?> | <a href="<?php trackback_url() ?>">Trackback</a> | <?php if(function_exists('wp_print')) { print_link(); } ?></dd>
<dt>Bookmark: </dt>
<dd><?php the_bookmark_links(); ?></dd>
</dl>
</div>
</div>
<div class="navigation">
<span class="aligncenter"><?php previous_post_link('« %link') ?> | <?php next_post_link('%link »') ?></span>
<?php if (function_exists('ls_getinfo')) : ?>
<?php if (ls_getinfo('isref')) { ?>
<div class="landingsites">
<h2>Ihre Suche nach: <?php ls_getinfo('terms'); ?></h2>
<p>Sie kommen von <?php ls_getinfo('referrer'); ?> und suchen nach <em><?php ls_getinfo('terms'); ?></em>. Folgende Beiträge könnten von Interesse für Sie sein:</p>
<ul>
<?php ls_related(5, 10, '<li>', '', '', '', false, false); ?>
</ul>
</div>
<?php } ?>
<?php endif; ?>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<h2>Nicht gefunden</h2>
<p><?php _e('Sorry, kein Artikel passt zu deinen Kriterien.'); ?></p>
</div>
<?php endif; ?>
<?php get_footer(); ?>
Alles anzeigen