+ 2

Help me moving a pic to the center location

5th Nov 2017, 11:50 AM
Samaritan Artificial Intelligence
Samaritan Artificial Intelligence - avatar
8 Answers
+ 4
<img> is an inline-block element, meaning it could be horizontally centered as text-content: set 'text-align:center' on its parent... and check my code to choose wich vertical centering is better suited to your case (if you choose 'flex', horizontal centering should be also done through flex properties ;))
5th Nov 2017, 12:13 PM
visph
visph - avatar
+ 3
(assuming you know how horizontal centering ^^)
5th Nov 2017, 12:03 PM
visph
visph - avatar
+ 2
<IMG src=abc.jpg width=x height=y align = center>
12th Nov 2017, 7:46 AM
Manish Bainsla
+ 2
use align=center
20th Dec 2017, 8:33 AM
Manish Bainsla
0
I don't get it....
5th Nov 2017, 12:07 PM
Samaritan Artificial Intelligence
Samaritan Artificial Intelligence - avatar
0
got it I just used <center> picture </center>.... Thanks
5th Nov 2017, 12:25 PM
Samaritan Artificial Intelligence
Samaritan Artificial Intelligence - avatar
0
just use in your css img { display: block; }
5th Nov 2017, 12:34 PM
~Sudo Bash
~Sudo Bash - avatar