WordPress.org

Ready to get started?Download WordPress

Forums

Positioning post title "inside post" !? (3 posts)

  1. googlebot
    Member
    Posted 7 years ago #

    DO you guys thing that is possible to float the post title in a way that is gonna appear inside the post instead of on top?
    this picture should give an idea of what I'm try to do.

    http://img388.imageshack.us/img388/1125/overlappingsi7.jpg

    I was thinking to wrap the post title tag in a div and then float it and position it above the post content but I'm unsuccessful.

    Thanks to everyone.

  2. Beee
    Member
    Posted 7 years ago #

    if you find out, plz let me know. want to do it as well but with
    <?php the_title(); ?> it can't be achieved

  3. Doodlebee
    Member
    Posted 7 years ago #

    want to do it as well but with
    <?php the_title(); ?> it can't be achieved

    Absolutely it can. It's just a matter of CSS. If I used the default theme files as an example, the output would be:

    <div class="post">
    <h2>post title here</h2>
    <small> date here</small>
    <div class="entry">
    stuff here
    </div>
    <p class="postmetadata">more stuff here
    
    </div>

    That's your basic output. If you change it slightly by placing a div around the <h2> and <small> tags, and then placing that *inside* of the entry div, you just give it a width and float it left. Done.

Topic Closed

This topic has been closed to new replies.

About this Topic