Display two images side by side on an HTML Page

后端 未结 7 1831
渐次进展
渐次进展 2021-01-06 07:09

I am trying to place two images of the same size side-by-side. If I use a table then I am able to display both images side-by-side. But in my CSS Stylesheet I a

7条回答
  •  说谎
    说谎 (楼主)
    2021-01-06 07:51

    1. Have you tried float:left ?
    2. Attach a different class to every table and then in your css:
    .table_one {
        background-color: #CC0000;
    }
    
    .table_two {
        background-color: #00CC00;
    }
    

提交回复
热议问题