how to center the table? how to center the table?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

how to center the table?

Started by daryl, June 10, 2006, 03:31:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daryl

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!

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

daryl

thanks for the quick reply!
I want everything bluish to be consistent, so pretty much all tables should be centered.

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

daryl

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.

Sami

#5
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  ;)
‍I don't answer to PM with support question
Please post your issue to related board

daryl

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.