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

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -