Hey,
ich habe folgendes Problem:
Meine Sidebar ist unterhalb des Contents. Die Seitebar soll aber neben den Content sein. Hier klicken um zu sehen was ich meine ;)
Code Index.php (ist aber noch net fertig, etwas durcheinander, sry)
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Link zu <?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php the_content('Kompletten Beitrag lesen'); ?>
<div class="infos">Geschrieben am <?php the_time('d.m.Y') ?> von <?php the_author() ?> in <?php the_category(', ') ?>. <?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?>. <?php edit_post_link('editieren','','·'); ?></div>
<?php endwhile; ?>
<?php next_posts_link('« vorherige Seite') ?> - <?php previous_posts_link('nächste Seite »') ?>
<?php else : ?>
<div class="post">
Fehler! Die gewünschte Seite ist nicht verfügbar.
</div>
<?php endif; ?>
<div id="sitemap">
<?php get_sidebar(); ?></div>
</div>
<?php get_footer(); ?>
Alles anzeigen
style.css
/*
Theme Name: SG Könitz/Saalfeld
Description: Temp. für den Handballverein SG Könitz/Saalfeld
Version: 1.0
Author: Double-7
Author URI: http://www.double-7.de
License: GPL
*/
body {
background: #000000;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
}
a:visited {
color: #FF0000;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
/*Header*/
#header {
background-color:: #0a406a;
}
.headertop {
color: #FFFFFF;
background-color: #0a406a;
width: 800px;
height: 31px;
}
#headtext {
text-align: center;
}
#headerpic {
background-image:url(Bilder/bilder_05.jpg);
width: 800px;
height: 204px;
}
.navi {
width: 800px;
height: 44px;
background-image:url(Bilder/navi_bg.jpg);
float: left;
text-align: left;
margin: 0px;
padding: 0px;
}
.navi li {
display: inline;
list-style-type: none;
margin: 0px;
padding: 0px;
}
.navi ul {
margin: 0px;
padding: 15px 0px 0px 12px;
}
.navi a, .navi a:visited {
color: #FFFFFF;
font-weight: bold;
margin: 0px;
padding: 6px 10px 6px 10px;
text-decoration: none;
}
.navi a:hover {
color: #FFFFFF;
font-weight: bold;
text-decoration: underline;
}
/*Content*/
#content {
background: #FFFFFF;
width: 562px;
}
/*Sitemap*/
#sidebar
{
background: #206698;
padding: 20px 0 10px 0;
margin-left: 562px;
width: 238px;
}
#sidebar form {
margin: 0;
}
Alles anzeigen
Falls noch etwas fehlt, sagt es ;)
Grüße Odin