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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -