Forums

img goes of the content while using aligment (3 posts)

  1. garfunkel61
    Member
    Posted 1 year ago #

    Hi,
    the problem acourse when i give left, right aligment to the image. The pic goes of the content of page.

    I am using such code in my page tamplate:

    <? get_header(); ?>

    <div class="content">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <?php if ( is_front_page() ) { ?>
    <h2><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1><?php the_title(); ?></h1>
    <?php } ?>
    <p class="text"><?php the_content(); ?></p>
    <?php endwhile; ?>
    </div>

    </div>

    <?php get_footer(); ?>

    Take a look how it looks:

    http://www.damian.it.pl

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    this is caused by the 'float' in the image style;

    check the web for 'clearfloat' .

  3. garfunkel61
    Member
    Posted 1 year ago #

    Thx !

    Just added clear:both; to below element and now it's ok! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags