Guten Abend.
Ich habe folgendes Problem: Ich hab für meinen Wordpress Blog ein Temlate besorgt, was normalerweise komplett links am fenster angeordnet ist, habe es aber mit <center>>/center> mittig gesetzt, nur das problem ist das jetzt eine grafig ein stück nach rechts verschoben ist, also ein css fehler?? Screen: Hier
Die grafik ist verschoben aber normalerweise wenn ich das an dem linken rand lasse das temlate ist auch alles bündig
kann jemand helfen?
CSS Code der Grafix:
PHP
.content {
background: #FFF url('images/mainbg.jpg') repeat-y center;
color: #ccc;
margin: 0 auto;
padding: 0;
width: 800px
}
.img {
padding: 0 8px 8px 0;
float: left;
}
.img2 {
padding: 0 0 3px 3px;
float: right;
Alles anzeigen
Index Template wo ich alles auf <center> gesetzt hab:
PHP
<center><?php get_header(); ?>
<div id="main">
<?php get_sidebar(); ?>
<div class="left_side">
<?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(); ?>"><?php the_title(); ?></a></h2>
<h3><img src="<?php bloginfo('stylesheet_directory'); ?>/images/timeicon.gif" alt="" /> <?php the_time('F jS, Y') ?> by <img src="<?php bloginfo('stylesheet_directory'); ?>/images/author.gif" alt="" /> <?php the_author() ?> </h3>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="info">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comments.gif" alt="" /> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<p align="center"><?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?></p>
<?php else : ?>
<h2 align="center">Not Found</h2>
<p align="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>
</div>
</body></center>
</html>
Alles anzeigen
man achte auf das <center> am anfang und am ende. Ist das denn so richtig