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
$CONFIG['main_table_width'] = '100%';
Oh Bloody Hell!!! Thanks Nibbler. :)
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