View Full Version : Auto center image
Ladillaxx
03-29-2016, 02:24 PM
Hi.
I want pictures of my posts will automatically center
Its possible?
Thanks :)
MarkFL
03-29-2016, 03:09 PM
Try adding the following selector to your "additional.css" template:
.postcontent img {
display: block;
margin-left: auto;
margin-right: auto;
}
Ladillaxx
03-29-2016, 05:00 PM
Try adding the following selector to your "additional.css" template:
.postcontent img {
display: block;
margin-left: auto;
margin-right: auto;
}
Fantastic :):)
Thank you very much
--------------- Added 1459343112 at 1459343112 ---------------
There is a problem, emoticons also come centered.
any solution?
Thanks
--------------- Added 1459343169 at 1459343169 ---------------
Try adding the following selector to your "additional.css" template:
.postcontent img {
display: block;
margin-left: auto;
margin-right: auto;
}
There is a problem, emoticons also come centered.
any solution?
Thanks
Ladillaxx
03-31-2016, 04:03 PM
any solution?
Thanks
MarkFL
03-31-2016, 04:11 PM
any solution?
Thanks
Sorry, when posts get merged, they don't show up in the "New Posts" search...anyway, change the selector to:
.postcontent img:not(.inlineimg) {
display: block;
margin-left: auto;
margin-right: auto;
}
Ladillaxx
03-31-2016, 05:41 PM
Its fine :)
Thank you very much
--------------- Added 1459453961 at 1459453961 ---------------
Sorry @MarkFL
to center videos also? :)
Thanks
MarkFL
03-31-2016, 09:53 PM
Its fine :)
Thank you very much
--------------- Added 1459453961 at 1459453961 ---------------
Sorry @MarkFL
to center videos also? :)
Thanks
Try this to also center videos:
.postcontent img:not(.inlineimg), .postcontent .restrain {
display: block;
margin-left: auto;
margin-right: auto;
}
Ladillaxx
04-01-2016, 08:19 AM
Thank you very much
You are the best :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.