Forums

Showing other posts at the bottom of a post (3 posts)

  1. prologuemedia
    Member
    Posted 1 year ago #

    I am building a site where I when you bring up a tags page, it will default to the newest post with that tag and then have a 2 column listing of the other posts tagged below.

    How can I get the two columns?

    -gl

  2. Phil
    Member
    Posted 1 year ago #

    If you mean how to create 2 columns in html and css, then below is how you do it:

    HTML

    <div class="columnwrap">
        <div class="column1">Insert content / php here</div>
        <div class="column2">Insert content / php here</div>
    </div>

    The CSS

    .columnwrap { width: 900px; }
    .column1 { float: left; width: 440px; margin-right: margin-right: 20px; }
    .column2 { float: right; width: 440px; }

    Adjust widths etc to suit. Hope this helps.

  3. prologuemedia
    Member
    Posted 1 year ago #

    Thanks. That is part of it but, running the loop to populate both columns is the other question in this.

    -gl

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags