Take a look at my fiddle: http://jsfiddle.net/jVsQY/
As you can see, I use text-align: center in the image tag, with the class, and it does not show any results.
text-align: center
I tried to use display: inline-block and so, but it didn't help.
display: inline-block
To center the alignment of the image, you need to do something like this:
<div style="text-align:center;"><img src="image.jpg" /></div>
Or like this:
<img src="image.jpg" style="display:block; margin:auto; "/>
If you use this CSS, you will get the image in the center
.center { display: block; margin-left: auto; margin-right: auto;}
Source: https://habr.com/ru/post/1393661/More articles:Learning OpenGL on Mac Os X - c ++Performance Hadoop - performancePHP check if empty fields - phpHadoop WordCount Example Example: Do I need to do some performance tuning? - javaC # optimization - arrays / lists of value types and stack (games) - optimizationHow to execute a single line of OCaml code in Emacs? - emacsIs it possible to fit a linear model with only a response variable? - rFailed to initialize Windows Azure Storage Emulator - azure-storageSave java txt file in folder - javahow to access Java SDK using C ++ - c ++All Articles