Title: Display inline
Last modified: August 31, 2016

---

# Display inline

 *  Resolved [juulheeftvragen](https://wordpress.org/support/users/juulheeftvragen/)
 * (@juulheeftvragen)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/)
 * Hello,
 * I’m bussy to make an new WordPress theme. I got an problem. I want the pics on
   one line.
    [Picture](http://imgur.com/qxaSduQ)
 *  I’ve try in the css with: display:inline-block, but it didn’t work. I work also
   with Bootstrap.
 * This is my css:
 *     ```
       #sidebar {
   
         text-decoration:none !important;
         padding:10px;
         width:80%;
         margin: 5px;
   
       }
   
        #post2 {
   
        	width:250px;
         display: inline-block;
   
        }
       ```
   
 * Whats the problem?
 * Juul

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/#post-7430090)
 * can you post a link to your site to illustrate the image problem?
 *  Thread Starter [juulheeftvragen](https://wordpress.org/support/users/juulheeftvragen/)
 * (@juulheeftvragen)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/#post-7430157)
 * Yes sure:
 * [Website](http://julianrouw.nl/test/2016/05/28/hallo-wereld/)
 *  [codemovement.pk](https://wordpress.org/support/users/codemovementpk/)
 * (@codemovementpk)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/#post-7430188)
 * Hello,
 * Please remove width from above css.
 *     ```
       #post2 {
        display: inline-block;
        }
       ```
   
 * thank you
 *  [codemovement.pk](https://wordpress.org/support/users/codemovementpk/)
 * (@codemovementpk)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/#post-7430189)
 * This is how it would look like when you remove the width. [http://prntscr.com/balveo](http://prntscr.com/balveo)
 *  Thread Starter [juulheeftvragen](https://wordpress.org/support/users/juulheeftvragen/)
 * (@juulheeftvragen)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/display-inline-2/#post-7430200)
 * @codemovement.pk Thank you! It works.
 *  [Que42](https://wordpress.org/support/users/que42/)
 * (@que42)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/display-inline-2/#post-8899206)
 * Wish I’d a come here first. Took about a half hour of trial and error to figure
   out you can’t seem to have a width tag with an inline-block.
 * But of course the next question is, is there anyway to set the width? I tried
   bunch of things like inserting a clearfix type dedicated div just for width tag
   but no matter what I try, any width anywhere within the inline-blocked div makes
   them stack up vertically.

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

The topic ‘Display inline’ is closed to new replies.

## Tags

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

 * 6 replies
 * 4 participants
 * Last reply from: [Que42](https://wordpress.org/support/users/que42/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/display-inline-2/#post-8899206)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
