Setting Main Table Width in theme.php Setting Main Table Width in theme.php
 

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

Setting Main Table Width in theme.php

Started by Gizmo, October 17, 2006, 01:53:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gizmo

I need to make sure the main table width in a new theme I've nearly finished (WordPress K2) is set to 100% so I set $CONFIG['main_table_width'] = 100% in the theme.php file but of course this gives an error when loading because of the % sign. I can't set it to an absolute width because IE screws this up because of the padding and adjusting a style specifically for IE just isn't cutting it. Is there a way to set it to 100% in the theme.php?

Thanks,

Gizmo
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Nibbler


Gizmo

Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller

Just for clarification: in PHP, you don't have to explicitely set the type of a variable/array/object (boolean, integer, float, string ), so you can't judge just by looking at the name of which type $CONFIG['main_table_width'] is. When assigning a string to a var, you need to put it into quotes ($foo = 'bar' or $foo = "bar"). When assigning boolean ($foo = TRUE), integer ($foo = 5) or float ($foo = 3.1415) to a var, you don't necessarily need to put them into quotes. However, to stay save, you may put them into quotes - $foo = '5' is fine.
Details: http://www.php.net/manual/en/language.types.php