Page 1 of 1

Layout table styling

Posted: Thu 20. Nov 2003, 22:39
by marco
I am trying to figure out how can I style the layout tables that phpwcms generates, for instance:

:?: How do I place a 10px border around the main layout table?

This is what is generated:

<table border="0" cellspacing="0" cellpadding="0" width="760" align="center">

And this is what I need:

"border:10px #336699 solid;" (no borders between the table rows and cells, only around the main table)

I found the "layout_border_" width attributes in conf.pagelayout.inc.php, but not for the border color:

$pagelayout["layout_border_top"] = 10;
$pagelayout["layout_border_bottom"] = 10;
$pagelayout["layout_border_left"] = 0;
$pagelayout["layout_border_right"] = 0;

:!: Note that the "layout_border_top" and "layout_border_bottom" set to 10px come from the "page margin" attributes that I set in the admin panel; they are NOT the TABLE borders.

:?: Are there config attributes that allow me to set the table border and color?

:?: Is it possible to have all the attributes needed to completely format the layout tables in the config file?

Posted: Thu 20. Nov 2003, 22:48
by Oliver Georgi
Do such things with CSS:

in page layout -> all blocks -> class: test

put in frontend.css:
.test {
border: 10px solid #008B8B;
}

Change color, alignment and so on as you like. Send me an link ;-)

That's it.

Posted: Thu 20. Nov 2003, 22:55
by marco
It worked like a charm, thanks! I knew I must be missing once again something quite obvious: the class attribute is right there in the admin panel :P

Posted: Thu 20. Nov 2003, 23:00
by marco
PS - I do not yet have a link - it's on my laptop, but I'll mail a snapshot.

Posted: Fri 21. Nov 2003, 00:12
by Oliver Georgi
I send you an email with info ;-)

Posted: Wed 26. Nov 2003, 23:56
by Bijan Hemati
Oliver Georgi wrote:I send you an email with info ;-)
Hi Oliver,

I like to know more about page layout and class also.
Would you please send me, that info, as well? :wink:

Regards,

Bijan