
Kolor czarny to obrazek, zielony to tekst. Pierwszy schemat przedstawia sytuację obecnie. Jak widać, tekst się zaczyna dopiero na dole obrazka. Dążę do sytuacji drugiej. Wiem, że wystarczy w tym momencie ustawić float:letf dla klasy img (mialem podobny problem w mojej skórce) ale niestety nie wiem gdzie, nie wumiem sobie poradzić.
Plik style.css:
Kod
http://nevadasmithconsulting.com/ - tutaj znajduje się treść pliku (nie chcialem wklejać do tematu gydż jest na prawdę dluga)
Plik single.php:
Kod
<?php global $is_ajax; $is_ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']); if (!$is_ajax) get_header(); ?>
<?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
<div class="content" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<a class="sh2" href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( "Link bezpośredni do ", "wptouch" ); ?><?php if (function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a>
<div class="single-post-meta-top"><?php echo get_the_time('j F Y') ?><br />
<!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active -->
<?php if ('open' == $post->comment_status) : ?>
<?php if (function_exists('dsq_comments_template')) { ?>
<a href="#dsq-add-new-comment">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } elseif (function_exists('id_comments_template')) { ?>
<a href="#idc-container-parent">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?>
<a href="#respond">? <?php _e( "Zostaw komentarz", "wptouch" ); ?></a>
<?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?>
<a href="#com-head">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } ?>
<?php endif; ?>
</div>
<div class="clearer"></div>
</div>
<?php wptouch_include_adsense(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div id="singlentry" class="<?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>">
<?php the_content(); ?>
</div>
<div class="single-post-meta-bottom">
<?php link_pages('<div class="post-page-nav">' . __( "Strona", "wptouch" ) . ': ', '</div>', 'number', ' ?', '? '); ?>
<?php _e( "Kategorie", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?>
<?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else : ?>
<!-- Dynamic test for what page this is. A little redundant, but so what? -->
<div class="result-text-footer">
<?php wptouch_core_else_text(); ?>
</div>
<?php endif; ?>
</div>
<!-- Do the footer things -->
<?php global $is_ajax; if (!$is_ajax) get_footer(); ?>
<?php $wptouch_settings = bnc_wptouch_get_settings(); ?>
<div class="content" id="content<?php echo md5($_SERVER['REQUEST_URI']); ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<a class="sh2" href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( "Link bezpośredni do ", "wptouch" ); ?><?php if (function_exists('the_title_attribute')) the_title_attribute(); else the_title(); ?>"><?php the_title(); ?></a>
<div class="single-post-meta-top"><?php echo get_the_time('j F Y') ?><br />
<!-- Let's check for DISQUS... we need to skip to a different div if it's installed and active -->
<?php if ('open' == $post->comment_status) : ?>
<?php if (function_exists('dsq_comments_template')) { ?>
<a href="#dsq-add-new-comment">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } elseif (function_exists('id_comments_template')) { ?>
<a href="#idc-container-parent">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } elseif (isset($post->comment_count) && $post->comment_count == 0) { ?>
<a href="#respond">? <?php _e( "Zostaw komentarz", "wptouch" ); ?></a>
<?php } elseif (isset($post->comment_count) && $post->comment_count > 0) { ?>
<a href="#com-head">? <?php _e( "Przejdź do komentarzy", "wptouch" ); ?></a>
<?php } ?>
<?php endif; ?>
</div>
<div class="clearer"></div>
</div>
<?php wptouch_include_adsense(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div id="singlentry" class="<?php echo $wptouch_settings['style-text-size']; ?> <?php echo $wptouch_settings['style-text-justify']; ?>">
<?php the_content(); ?>
</div>
<div class="single-post-meta-bottom">
<?php link_pages('<div class="post-page-nav">' . __( "Strona", "wptouch" ) . ': ', '</div>', 'number', ' ?', '? '); ?>
<?php _e( "Kategorie", "wptouch" ); ?>: <?php if (the_category(', ')) the_category(); ?>
<?php if (function_exists('get_the_tags')) the_tags('<br />' . __( 'Tags', 'wptouch' ) . ': ', ', ', ''); ?>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else : ?>
<!-- Dynamic test for what page this is. A little redundant, but so what? -->
<div class="result-text-footer">
<?php wptouch_core_else_text(); ?>
</div>
<?php endif; ?>
</div>
<!-- Do the footer things -->
<?php global $is_ajax; if (!$is_ajax) get_footer(); ?>
Będę baaaaardzo wdzięczy za pomoc.