Layout table styling

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
marco

Layout table styling

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marco

Post 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
marco

Post by marco »

PS - I do not yet have a link - it's on my laptop, but I'll mail a snapshot.
User avatar
Oliver Georgi
Site Admin
Posts: 9919
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I send you an email with info ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Bijan Hemati
Posts: 191
Joined: Sun 9. Nov 2003, 00:18
Location: Austin, TX

Post 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
Post Reply