html - How can you do this in CSS -


what best way in css without using float property;

i know how add icon i'm not sure how add icon before heading , paragraph.

enter image description here

an html5/css3 approach use proper markup instead of 1999-style tables, , style them single flexbox reference:

section {    display:flex;  }
<section>    <figure><img src="//placehold.it/150"></figure>    <article>      <h2>lorem ipsum</h2>      <p>dolor sit amet etc. etc.</p>    </article>  </section>

an added advantage of approach can add flex-direction:column in media query make responsive small screens.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -