How to center thumbnails in viewtopic?

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

How to center thumbnails in viewtopic?

Post by forforce » Wed Apr 02, 2014 11:53 pm

Hi, is there a way that I can center thumbnails of attached images in viewtopic ? I can`t find a way to do this. All my image thumbnails are aligned to left. Can somebody help ?
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

User avatar
Rahber
Former Team Member
Posts: 2720
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber
Contact:

Re: How to center thumbnails in viewtopic?

Post by Rahber » Sat Apr 05, 2014 10:13 am

try adding this to your css preferably in content.css or at every end.

Code: Select all

div.inline-attachment dl.thumbnail{
text-align:center;
}


Refresh your css as needed.

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Sat Apr 05, 2014 11:48 pm

Thanks for reply but I tried to add this code in all .css files and refresh css but no luck :( ... still aligned to left. I would appreciate any other ideas.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Tue Apr 08, 2014 11:15 pm

Any help please? :(
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Fri Apr 11, 2014 9:11 pm

Nobody ? :(
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Tue Apr 15, 2014 10:54 pm

Up.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

abcEzy
Registered User
Posts: 232
Joined: Mon May 09, 2005 6:48 pm

Re: How to center thumbnails in viewtopic?

Post by abcEzy » Wed Apr 16, 2014 7:12 pm

if its already in a div tag

add

align="center"

ie

Code: Select all

<div id="someid" align="center"> </div>
maybe that works?

is it some image youre entering in a post?

create a custom BBcode to do it.

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Thu Apr 17, 2014 8:34 am

It`s about the pictures/attachments that you upload and after that you put them "in line" in a topic/post. They are in the left side, I don`t know how to center them, without using the bbcode. All images from my website are set "in line". And the users who attach files are used with "add in line" button. Any help for this ?
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Thu Apr 17, 2014 9:16 am

SOLVED:
Solved: in bbcode.html add command "<center>" like this:

Code: Select all

<!-- BEGIN inline_attachment_open --><center><table><tr><td><!-- END inline_attachment_open -->
<!-- BEGIN inline_attachment_close --></td></tr></table></center><!-- END inline_attachment_close -->
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Tue Jun 10, 2014 10:52 am

Open again.
It`s seems that all is working fine with attachments but if I add external images with the "Img" bbcode, images are aligned to the left again. Any help for this one?
I think there need to be edited this code:

Code: Select all

'img'		=> '<img src="$1" alt="' . $user->lang['IMAGE'] . '" />',
from /includes/bbcode.php but I have no idea how to do it. Thank you.
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Sat Jun 14, 2014 4:55 pm

Nobody ? :(
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

forforce
Registered User
Posts: 323
Joined: Fri Oct 04, 2013 7:57 am
Contact:

Re: How to center thumbnails in viewtopic?

Post by forforce » Sat Sep 13, 2014 8:05 pm

Anybody?!
https://www.cumseface.eu , We have tutorials for everything / Te ajutam se te descurci singur .

Locked

Return to “[3.0.x] Styles Support & Discussion”