• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Wordpress Sidebar Problem

Status
Für weitere Antworten geschlossen.

mtc_skater

Neues Mitglied
Hallo,

ich bin schon fast am verzweifeln. Ich habe wordpress bei mir auf dem PC installiert, und habe das design dafür eigentlich schon fast fertig. Jetzt hab ich bloß den CSS Code ein bisschen aufgeräumt, und aufeinmal ist die Sidebar nach unten gerutscht, also immer ans ende der Seite. Ich hab schon rumversucht aber finde den Fehler nicht. Ich hoffe von euch kann mir einer weiterhelfen.

Hier der CSS Code für den Bereich:

HTML:
body {
	font-size: 62.5%;
	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
	background: #fafafa url('images/bg.jpg') no-repeat top center;
	color: #000;
	text-align: center;
	padding: 0;
	}
.sidebarTop {
	background-image: url(images/sidebar/top.png);
	height: 10px;
	margin-left: 610px;
	width: 238px;
	color: #444;
	font-size: 9px;
	text-align: center;
}
.sidebarBottom {
	background-image: url(images/sidebar/bottom.png);
	height: 10px;
	margin-left: 610px;
	width: 238px;
}

#content {
	font-size: 1.2em
	}

#page {
	margin: 20px auto;
	padding: 0;
	width: 562px;
	text-align: left;
	}

#sidebar {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	background-image: url(images/sidebar/bg.png);
	width: 238px;
	margin-left: 610px;
	padding: 20px 0 10px 0;
	}

und die index.php:
HTML:
<?php get_header(); ?>

	<div id="content">

	<?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="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
				<div class="postMiddle">
                <small><?php the_time('j. F Y') ?> <!-- von <?php the_author() ?> --></small>
				
				<div class="entry">
					<?php the_content('Den ganzen Beitrag lesen »'); ?>
				</div>

				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Kategorie <?php the_category(', ') ?> <strong>|</strong> <?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?> <?php edit_post_link('Bearbeiten','<strong>|</strong> ',''); ?> </p>
                </div>
			</div>

            
	
		<?php endwhile; ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Vorherige Eintr&auml;ge') ?></div>
			<div class="alignright"><?php previous_posts_link('N&auml;chste Eintr&auml;ge &raquo;') ?></div>
		</div>
		
	<?php else : ?>

		<h2 class="center">Nicht gefunden</h2>
		<p class="center">Sorry, aber du suchst gerade nach etwas, was hier nicht ist.</p>
		<?php include (TEMPLATEPATH . "/searchform.php"); ?>

	<?php endif; ?>


	</div>
<?php get_sidebar(); ?>


<?php get_footer(); ?>
ich glaub die sidebar.php braucht ihr nicht!?

Hoffe von euch kann mir einer helfen. Anbei noch ein Screenshot


gruß skater
 

Anhänge

  • screen.jpg
    screen.jpg
    19,5 KB · Aufrufe: 11
Setz den Content auf "float: left;". Dann setzt die Navigation wieder direkt daneben, sofern die die Box nicht zu klein gemacht hast, die um all das rum ist.

Die Box deiner index.php solltest du evtl nochmal neu tabben, momentan ist alles in einer Reihe. Isn Bug vom Forum, dass die Tabs nicht immer angenommen werden denke ich.
 
jippyjajajippyjippyjayyy.

Cool danke! das wars. Hätte ich echt auch selber drauf kommen können :roll:

Vielen Dank an euch.

Gruß skater.
 
hi,

ich hab mir die Seite nochmal im IE7 angeschaut, und musste feststellen, das es da immer noch so ist. Im Firefox und Opera geht es.

Danke schonmal. gruß skater
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben