Text floating in block next to image

前端 未结 5 1387
余生分开走
余生分开走 2020-12-08 20:03

I would like to achieve the following placement:

Two different texts (in block) floating / inline next to image. (Everything inside div).

I have been trying

5条回答
  •  眼角桃花
    2020-12-08 20:18

    I think you need the following:

    HTML:

    TITLE

    Element description

    CSS:

    .wrap { width: 600px; /* Just a sample value */ }
    .left { width: 200px; float: left; }
    .right { margin-left: 220px; width: 380px;}
    

    That should do the trick. Adjust width and margin params to your needs.

提交回复
热议问题