Title: Two Column Post Index File
Last modified: August 19, 2016

---

# Two Column Post Index File

 *  Resolved [caflma](https://wordpress.org/support/users/caflma/)
 * (@caflma)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/two-column-post-index-file/)
 * I want to create two columns for the frontpage (index file). It would be similar
   to a magazine style.
 * In other words, I want to have two posts right next to each other.
 * Could someone please help me with the code?

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

 *  [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * (@fmacastro)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223500)
 * There are many ways to achieve that.
 * this simple CSS aproach whould work:
 * Add this logic to your markup:
 * ´<div id=”postContainer”>
    <div class=”myPost”> your post #1 here </div> <div
   class=”myPost”> your post #2 here </div> <div class=”myPost”> your post #3 here
   </div> <div class=”myPost”> your post #4 here </div> </div>´
 * Then add this to your CSS:
 * ´#postContainer {
    width:600px; } .myPost { width:290px; float:left; margin: 
   0 5px; }´
 * MAC 🙂
 *  Thread Starter [caflma](https://wordpress.org/support/users/caflma/)
 * (@caflma)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223700)
 * Thanks for your reply. But how can I add the Posts titles automatically?
 * I call my post tile with:
 * </h1>
 * If I put –> <
 * </h1></div>
 * It works for this part, but I want the next posts automatically added to the 
   site. Do you know the correct code to achieve this?
 *  Thread Starter [caflma](https://wordpress.org/support/users/caflma/)
 * (@caflma)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223706)
 * I figured it out, thanks!!!
 *  [MAzCastro](https://wordpress.org/support/users/fmacastro/)
 * (@fmacastro)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223731)
 * cool 🙂
 *  [wareno](https://wordpress.org/support/users/wareno/)
 * (@wareno)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223871)
 * caflma
    i loved your idea but i couldn’t make it auto as you wanted . tried more
   than twice so i figured out im not and i won’t be a programmer newbie at websitemaster
   and wordpress .
 * so i hope you can share how did you solve your problems
    if you didn’t pay anything
   for it 🙂
 * thanx in advance

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

The topic ‘Two Column Post Index File’ is closed to new replies.

## Tags

 * [column](https://wordpress.org/support/topic-tag/column/)
 * [split](https://wordpress.org/support/topic-tag/split/)

 * 5 replies
 * 3 participants
 * Last reply from: [wareno](https://wordpress.org/support/users/wareno/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/two-column-post-index-file/#post-1223871)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
