Author Topic: How to center the thumbnails?  (Read 6417 times)

0 Members and 1 Guest are viewing this topic.

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
How to center the thumbnails?
« on: March 07, 2003, 02:49:18 AM »
.
« Last Edit: August 09, 2009, 12:53:06 AM by Ernesto Taseffa »

Offline SLL

  • Hero Member
  • *****
  • Posts: 585
    • View Profile
How to center the thumbnails?
« Reply #1 on: March 07, 2003, 08:06:12 AM »
check thumbnail_bit.html to remove some fields you don't want to show. centering is a bit more tricky - you can try to make it with stylesheet, look at .imagerow1 and .imagerow2 class there.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
How to center the thumbnails?
« Reply #2 on: March 07, 2003, 10:23:50 AM »
Quote from: SLL
check thumbnail_bit.html centering is a bit more tricky - you can try to make it with stylesheet, look at .imagerow1 and .imagerow2 class there.

I didnt know u can do it from stylesheet...
here what I did:
Code: [Select]
<TD valign="middle" align="center" height="100" width="100">{thumbnail}</TD>
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
How to center the thumbnails?
« Reply #3 on: March 07, 2003, 07:15:59 PM »
You can also use this in thumbnail_bit.html
Code: [Select]
<div align="center">
{thumbnail}
</div>

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
How to center the thumbnails?
« Reply #4 on: March 08, 2003, 11:46:07 AM »
.
« Last Edit: August 09, 2009, 12:52:46 AM by Ernesto Taseffa »

Offline stevo

  • Pre-Newbie
  • Posts: 1
    • View Profile
How to center the thumbnails?
« Reply #5 on: April 05, 2003, 11:46:51 AM »
Quote
centering is a bit more tricky - you can try to make it with stylesheet, look at .imagerow1 and .imagerow2 class there.

For the benefit of those searching in the future, I just had this problem as well, and used SLL's CSS method (thanks SLL!), and it worked great, at least for the standard thumbnails. Just to expand, I added the following line to .imagerow1 and .imagerow2 in style.css:
Code: [Select]
text-align: center;

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: How to center the thumbnails?
« Reply #6 on: May 09, 2005, 10:30:28 AM »
Damit geht es nicht:
Code: [Select]
<TD valign="middle" align="center" height="100" width="100">{thumbnail}</TD>Damit geht es:
Code: [Select]
<center>{thumbnail_openwindow}</center>Gruß
michi-w.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: How to center the thumbnails?
« Reply #7 on: May 09, 2005, 06:52:56 PM »
Education people! 
Code: [Select]
<center> is a deprecated tag and should not be used, see

http://www.w3.org/TR/REC-html40/conform.html#deprecated
http://www.w3.org/TR/REC-html40/present/graphics.html#edef-CENTER
Quote
The CENTER element is exactly equivalent to specifying the DIV element with the align attribute set to "center". The CENTER element is deprecated.

Use
Code: [Select]
<div align="center">instead