coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: daryl on June 10, 2006, 03:31:31 PM

Title: how to center the table?
Post by: daryl on June 10, 2006, 03:31:31 PM
Hi and thanks for your wonderful gallery functions, really greatful.
I've been trying to learn how the themes work a few days but some parts are hard to find. I started with the sample theme and went from there but never understood where the font sizes for the albums etc were set, so I started tweaking Hardwired instead as those fonts and sizes are to my liking. So I cleaned a few background images and such, but I dont seem to be able to align the table the way I want it. If I edit the table properties in the template.html (fixed width and alignment) it seems to only apply on the anycontent.php text, and not the table with categories/ albums. But if I set the table back to 100% in template.html, and set the width of it in the body of style.css instead, then I get the width I want for all the sections, but I cant set alignment. And here's the url: http://darylart.com/gallery

Any tips? Thanks!
Title: Re: how to center the table?
Post by: Sami on June 10, 2006, 03:53:09 PM
Just tell me wich table that you want to change, I'll show you how and where you can tweaking that.
some table create with theme.php not template.html and also you could change styles by editing style.css
Title: Re: how to center the table?
Post by: daryl on June 10, 2006, 04:00:21 PM
thanks for the quick reply!
I want everything bluish to be consistent, so pretty much all tables should be centered.
Title: Re: how to center the table?
Post by: Sami on June 10, 2006, 04:23:03 PM
if I'm wrong correct me ...
You want to align main table to center ?
- did you try <center></center>?
put center tag after body and /center tag right before /body tag
Title: Re: how to center the table?
Post by: daryl on June 10, 2006, 04:36:44 PM
If I remove the fixed width in the body of style.css (width: 1000px;) and define it in template.html instead, while also centering the table in that document, then the main table works correctly. But then I have the problem of defining the same width for the category table, which doesnt seem to adjust when setting width in template.html, but only in stylus.css. I did an update of the url to show it.

Thanks.
Title: Re: how to center the table?
Post by: Sami on June 10, 2006, 04:57:36 PM
okey if you want to all the table have static width of 1000px check this:
put this after body tag(template.html):

<center><table width="1000px" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>

and put this before /body tag:

</td></tr></table></center>


also you should change back the align value of main table to 100%(under template.html)

there is a 2nd way: in admin mode go to config and find "Album list view" and set the value of "Width of the main table (pixels or %)" to 1000
hope it work  ;)
Title: Re: how to center the table?
Post by: daryl on June 10, 2006, 05:29:56 PM
That 2nd way made the category table adapt to the fixed width of 1000px (the first way made no change)

thanks a ton for your time! much appreciated.