Grow your CSS skills. Land your dream job.

WordPress posts in separate boxes

  • # July 8, 2012 at 1:26 pm

    Hello I know this might be simple but I just wanted to know how I can achieve my posts to show up in separate Div’s example:

    http://4.bp.blogspot.com/-xCvv01qojdI/TsIo_V9-p1I/AAAAAAAAAR8/1W10RzA3zdc/s1600/PreviewImage.jpg

    # September 3, 2013 at 8:16 am

    mypost1

    # September 4, 2013 at 8:57 am

    Use WordPress loop

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                        <h2 ><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
                    <?php the_excerpt(); ?>
                <?php endwhile; endif; ?>
    
    # September 4, 2013 at 10:49 pm

    Thanks.It works fine.

    # September 5, 2013 at 7:15 am

    After putting any image in post, image comes out of the box. boxheight is not incraesing accordingly.Help me.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".