4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Ernesto Taseffa on March 07, 2003, 02:49:18 AM

Title: How to center the thumbnails?
Post by: Ernesto Taseffa on March 07, 2003, 02:49:18 AM
.
Title: How to center the thumbnails?
Post by: SLL 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.
Title: How to center the thumbnails?
Post by: V@no 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>
Title: How to center the thumbnails?
Post by: Chris on March 07, 2003, 07:15:59 PM
You can also use this in thumbnail_bit.html
Code: [Select]
<div align="center">
{thumbnail}
</div>
Title: How to center the thumbnails?
Post by: Ernesto Taseffa on March 08, 2003, 11:46:07 AM
.
Title: How to center the thumbnails?
Post by: stevo 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;
Title: Re: How to center the thumbnails?
Post by: michi-w. 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.
Title: Re: How to center the thumbnails?
Post by: Chris 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