Hi,
ich habe Probleme mit der ANzeige meiner Suchergebnisse, sie sprengen den content div, es ist schlecht zu erklären deswegen der Link:
Erna Dachs-Gottschlich
Zu sehene ist das Teile der Ergebnisse im grauen Hintergrund verlaufen.
Egal ob FF, IE7 oder 6.
Quellcode search.php
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<div class="entrytitle"><h1 class="pagetitle">Suchergebnisse zu '<?php echo $s ?>'</h1><br /></div>
<?php while (have_posts()) : the_post(); ?>
<div class="entrytitle"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Link zu<?php the_title(); ?>"> <?php the_title(); ?></a></h2></div>
<h3><?php the_time('j. F Y, H.i') ?></h3>
<div class="entrybody"><?php the_excerpt() ?></div>
</div>
</div>
<?php endwhile; ?>
<?php else :?>
<h2>Leider nichts gefunden</h2>
<div class="errormessage">Leider hat Deine Suche keine Ergebnisse geliefert. Du kannst versuchen, Deine Suchkriterien anzupassen.</div>
<?php endif; ?>
<?php get_footer(); ?>
Alles anzeigen
Quellcode css:
/*************************************
Grundaufbau
*************************************/
html { height: 100%; margin-bottom: 1px;}
body {
font: 13px Arial, Helvetica, sans-serif;
background:#333;
color:#333;
text-align:left;
margin:15px auto 0px auto;
border:2px #fff solid;
width:750px;
}
#box{
width:750px;
background:#c8f285;
}
#header{
padding:0;
background:#c8f285;
}
#sidebar{
font-size:14px;
line-height: 20px;
float:left;
padding:20px 0 0 10px;
width:175px;
border-right:2px solid #88b442;
display:block;
background:#c8f285;
}
#content{
font-size:14px;
float:left;
line-height: 20px;
padding:13px 8px 15px 15px;
width:478px;
background:#c8f285;
}
#footer{
background:#c8f285;
color:#333;
clear:both;
font-size:0.9em;
text-align:center;
margin:10px 0 0 0;
padding:3px 0 7px 0;
border-top:1px solid #FFF;
}
/*************************************
Content CSS - Extrawurst
*************************************/
#text_neben_bild {
width:300px;
float:right;
}
#bild {
width:150px;
float:left;
}
.Stil3 {
font-size: 10px
}
.headline {
font-size: 16px;
font-weight: bold;
}
/*************************************
Headlines
*************************************/
h1, h2, h3{
font-family:Arial, Helvetica, sans-serif;
font-weight:normal;
margin:0;
}
.entrytitle h2{
font-size:2.2em;
color:#fff;
}
.entrytitle h2 a:hover{
color:#497700;
border-bottom: 1px dotted #fff;
}
.entrytitle h3{
font-size:1.8em;
color:#6F6F6F;
}
.archivetitle h2{
font-size:2.2em;
color:#497700;
}
#sidebar h2 a{
color:#333;
border-bottom: 1px dotted #333;
}
/*************************************
Sidebar
*************************************/
#sidebar ul{
list-style: none;
margin:0;
padding:0;
}
#sidebar ul li{
padding-bottom:2px;
margin-bottom:3px;
background:url(images/side-a.gif) no-repeat 0px 0px;
padding:0px 0 0px 35px;
font-size:14px;
margin-top:5px;
}
#sidebar #searchform #s{
width:152px;
background:#fff;
border:1px solid #497700;
color:#333;
margin-bottom:15px;
}
#sidebar #searchform #s:focus{
background:#fff;
color:#333;
}
/*************************************
Extras
*************************************/
a{
color:#333;
text-decoration:none;
border-bottom: 1px dotted #333;
}
a:hover{
color:#497700;
border-bottom: 1px dotted #fff;
}
img{
border:none;
}
img a{
border:none;
}
.errormessage{
padding-top:160px;
background:url(./images/error_emblem.gif) top center no-repeat;
}
.entrybody{
width:478px;
}
Alles anzeigen
Leider kann ich keinen Fehler finden, bin auch nicht ganz so firm in css un php.
Vielen Dank.
Der highfish