[Simple Image Grabber] Problem with a DIV tag
  • simpicsimpic February 2011

    In the home page of my site i have this box:

    imagehttp://img10.imageshack.us/img10/345/primajy.jpg

    It appears thanks to this code in the index.php file of my template:

    <div id="video">
    <h2>Video</h2>
    <?$my_query_vid->the_post();?>
    <div>
    <h3>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    </h3>
    <?php the_content(); ?>
    </div>
    </div>


    Now, i edit that code replacing
    <?php the_content(); ?>


    with
    <?php images('1', '', ''); ?>


    and i get this:

    imagehttp://img819.imageshack.us/img819/9632/dopoz.jpg

    As you can see the box ends before the image. I want that the image got included in the box.
    I hope you understand what i mean.

    Sorry for my english and thank you for your help.

  • cbavotacbavota February 2011

    That is probably caused by some CSS. Make sure that your box has a left float and your image has a left float.

  • simpicsimpic February 2011

    Solved!
    I replaced that part of code with this:

    <?php images('1', '', '', ''); ?>

    I missed the last ''

    Thank you for your prompt reply!

This discussion has been closed.
← All Discussions

Hey there!

Take a look around, and if you would like to add a comment or start a discussion, register by clicking on the button below.

Register

Categories

In this Discussion

Tagged