• Resolved juulheeftvragen

    (@juulheeftvragen)


    Hello,

    I’m bussy to make an new WordPress theme. I got an problem. I want the pics on one line.
    Picture

    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

    (@alchymyth)

    can you post a link to your site to illustrate the image problem?

    Thread Starter juulheeftvragen

    (@juulheeftvragen)

    Yes sure:

    Website

    codemovement.pk

    (@codemovementpk)

    Hello,

    Please remove width from above css.

    #post2 {
     display: inline-block;
     }

    thank you

    codemovement.pk

    (@codemovementpk)

    This is how it would look like when you remove the width. http://prntscr.com/balveo

    Thread Starter juulheeftvragen

    (@juulheeftvragen)

    @codemovement.pk Thank you! It works.

    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.