ggFTW

ggFTW (http://ggftw.com/forum/)
-   Wiki Discussion (http://ggftw.com/forum/wiki-discussion/)
-   -   table question (http://ggftw.com/forum/wiki-discussion/28405-table-question.html)

m1s3ri 11-18-2008 04:24 AM

table question
 
Is there an easy way to center every entry in a table? Like, in the middle of its cell?

Left-aligned entries are ugly :x

Sanichi 11-18-2008 05:53 AM

I'm thinking you can just center the whole page (annoyed by those too)

Kudaranai 11-18-2008 06:40 AM

align="center"

in the top line.

Chesters 11-18-2008 02:19 PM

{| align=center otherstuffgoesherebla

Won't work with prettytable however.

Kudaranai 11-18-2008 02:26 PM

what, the Ores page uses pretty table + center.

{| {{prettytable}} align="center" class="sortable"
|- style="background: #DDFFDD;"

http://www.mymmogames.net/wiki/index...es_and_Jewelry

Chesters 11-18-2008 02:29 PM

Quote:

Originally Posted by Kudaranai (Post 581173)
what, the Ores page uses pretty table + center.

{| {{prettytable}} align="center" class="sortable"
|- style="background: #DDFFDD;"

LaTale:Ores and Jewelry - MyMMOGames.net Wiki

That's because class=sortable overrrules the prettytable. So if you were to remove the {{prettytable}} from that code, there would be no effect.

Kudaranai 11-18-2008 02:31 PM

Then just add sortable and solves the problem :U

Chesters 11-18-2008 02:33 PM

Quote:

Originally Posted by Kudaranai (Post 581185)
Then just add sortable and solves the problem :U

Then you lose the effect that prettytable has >w>; (the border style and cell colors)

MORAL OF THE STORY: make your own table style.

Medoria 11-18-2008 05:47 PM

I can certainly make more than one pretty table css, or I can center pretty table if you want :x

Kudaranai 11-18-2008 10:13 PM

or a cutetable =)

Chesters 01-24-2009 01:49 PM

To make a centered table, add {{prettytable2}} to the top of it.

Medoria 01-24-2009 03:27 PM

wow, this was dated o.O


All times are GMT -7. The time now is 08:56 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.