p.i {display: inline;} span.b {display: block;} .ib {display: inline-block; background: yellow; height: 80px; width: 140px;}