html - Confused on Horizontal Card -


i've been struggling making horizontal card. don't want use flexbox, because i'm not experienced it. want this:

card

i've tried making card , i'm able similar although doesn't adjust correctly text inputted in it.

i recommend learn basic css in order simple layouts. anyway here's simple draft:

.container {    margin: auto;    width: 650px;    height: 150px;    padding: 0px;    text-align: center;  }    .leftbox,  .rightbox {    display: inline-block;    width: 200px;    height: 150px;    vertical-align: middle;    text-align: left  }    .leftbox {}    .rightbox {    border: 2px dashed pink;    background-color: pink;    width: 300px;    height: 146px;  }    .header {    margin: 10px 5px;  }    .data>p {    margin: 5px;    margin-left: 8px;  }    .leftbox {    background-image: url('https://upload.wikimedia.org/wikipedia/commons/4/45/a_small_cup_of_coffee.jpg');    background-size: contain;    background-repeat: no-repeat;  }
<div class="container">    <div class="leftbox">    </div><div class="rightbox">      <div class="header">caramel macchiato</div>      <div class="data">        <p>size</p>        <p>toppings</p>        <p>deliveery</p>        <p>amount</p>      </div>    </div>  </div>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -