+ 8

Align image with text

does anyone know how to align an image horizontally to a div element

13th Jul 2017, 12:22 PM
Cheesy Game Studios
Cheesy Game Studios - avatar
5 ответов
+ 5
I've tried that but it doesn't work
13th Jul 2017, 4:23 PM
Cheesy Game Studios
Cheesy Game Studios - avatar
+ 5
ok I'll try that
13th Jul 2017, 4:55 PM
Cheesy Game Studios
Cheesy Game Studios - avatar
+ 2
If you are asking how to get the image to where it is beside the text or any other element, then you should use the float property in your CSS.
13th Jul 2017, 4:19 PM
Joshua Baker
Joshua Baker - avatar
+ 1
try adding display: inline-block to the CSS of a div element that the img and p are nested in.
13th Jul 2017, 4:52 PM
Joshua Baker
Joshua Baker - avatar
+ 1
if that fails you can nest the elements in a display: flex and align them accordingly
13th Jul 2017, 4:59 PM
Joshua Baker
Joshua Baker - avatar