如何使三个图像内联显示?

时间:2019-05-26 06:10:27

标签: css

 雪佛兰Camaro MSRP:从$ 25,000马力:275至650 hp MPG:多达22个城市/ 31公路路缘重量:3,354至4,113磅发动机:2.0升4缸,3.6升V6、6.2升V8如果您需要敞篷版您支付$ 35000 +                  
678

1 个答案:

答案 0 :(得分:0)

.column {
  float: left;
  width: 33.33%;
  padding: 5px;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}
 <div class="row">
 <div class="column"  ><a> <img src="mustang.jpg" width=100% white-space= "nowrap"><span> Ford Mustang MSRP: From $26,395
                    Horsepower: 310 to 480 hp
                    MPG: Up to 21 city / 32 highway
                    Curb weight: 3,532 to 3,825 lbs
                    Engine: 2.3 L 4-cylinder, 5.0 L V8
                    For the convisrtable version the price starts at $31000</span></a>

             </div>
        <div class="column"> <a> <img src="challenger.jpg" width=100% white-space= "nowrap"><span>Dodge Challenger MSRP: From $27,845
                    Horsepower: 305 to 797 hp
                    MPG: Up to 19 city / 30 highway
                    Curb weight: 3,894 to 4,448 lbs
                    Engine: 3.6 L V6, 5.7 L V8, 6.2 L V8, 6.4 L V8
                    There are other models of this specific car, and the price can go as high as $37000</span></a>
             </div>  
             <div class="column"> <a> <img src="challenger.jpg" width=100% white-space= "nowrap"><span>Dodge Challenger MSRP: From $27,845
                    Horsepower: 305 to 797 hp
                    MPG: Up to 19 city / 30 highway
                    Curb weight: 3,894 to 4,448 lbs
                    Engine: 3.6 L V6, 5.7 L V8, 6.2 L V8, 6.4 L V8
                    There are other models of this specific car, and the price can go as high as $37000</span></a>
             </div>  
             </div>