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
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
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.
Thanks. That is part of it but, running the loop to populate both columns is the other question in this.
-gl
This topic has been closed to new replies.