JDavila JDavila - 1 year ago 65
CSS Question

How to create an side paragraph in HTML alongside an image?

I have image I would like to display in HTML alongside an paragraph, with some information. Essentially, I need the page to have the image on one side of the page and the paragraph on the other. Does a grid need to be use? Is There another way to do this without a grid.

I would suspect that if I do not put a

tag that it will just align itself to the right.

Is there some CSS involved to do this?

Answer Source

Just float and display CSS properties needed !

img , p {
  display: inline-block;

img {
  float: left;
  height: 300px;
p {
  float: right;
<img src="https://3.bp.blogspot.com/-W__wiaHUjwI/Vt3Grd8df0I/AAAAAAAAA78/7xqUNj8ujtY/s1600/image02.png">
<p>Hello World</p>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download