Title: Create box
Last modified: January 19, 2018

---

# Create box

 *  Resolved [dfart](https://wordpress.org/support/users/dfart/)
 * (@dfart)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/create-box/)
 * Hi. I was looking at several help pages but I can not find exactly what I want
   to do on the WordPress page I’m creating.
 * I would like to put in a gray box (for example) and inside put a title and below
   a description. So three boxes in line.
 * Could you tell me what the code would be like?
 * Thank you.

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

 *  [Afsana](https://wordpress.org/support/users/afsanamultanii/)
 * (@afsanamultanii)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/create-box/#post-9882238)
 * Hi,
 * If I understand correctly, I think this HTML will do what you want:
 *     ```
       <div style="width:100%; margin:0 auto;">
       <div style="background-color:grey;color:white;padding:20px;width:200px;margin:0 10px 0 0; float:left;">
         <h2> One 1 </h2>
         <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
       </div> 
   
       <div style="background-color:grey;color:white;padding:20px;width:200px;margin:0 10px 0 0; float:left;">
         <h2> Two 2 </h2>
         <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
       </div>
   
       <div style="background-color:grey;color:white;padding:20px;width:200px;margin:0 0 0 0; float:left;">
         <h2> Three 3 </h2>
         <p>London is the capital city of England. It is the most populous city in the United Kingdom, with a metropolitan area of over 13 million inhabitants.</p>
       </div>
       </div>
       ```
   
 * **To add HTML ** : Paste this code to the page where you want to fix this boxes.
   You can change the width and the background colour of the boxes.
 * You need to give proper width and alignment to this boxes to fix in a line.
 * I hope it helps you to solve your query.
    Happy working!
    -  This reply was modified 8 years, 3 months ago by [Afsana](https://wordpress.org/support/users/afsanamultanii/).
    -  This reply was modified 8 years, 3 months ago by [Afsana](https://wordpress.org/support/users/afsanamultanii/).
    -  This reply was modified 8 years, 3 months ago by [Afsana](https://wordpress.org/support/users/afsanamultanii/).
 *  Thread Starter [dfart](https://wordpress.org/support/users/dfart/)
 * (@dfart)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/create-box/#post-9882472)
 * Yes, that’s how I wanted to do it.
 * Thank you so much [@afsanamultanii](https://wordpress.org/support/users/afsanamultanii/)
 *  [Afsana](https://wordpress.org/support/users/afsanamultanii/)
 * (@afsanamultanii)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/create-box/#post-9889489)
 * Your Wrlcome. 🙂

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

The topic ‘Create box’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Afsana](https://wordpress.org/support/users/afsanamultanii/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/create-box/#post-9889489)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
