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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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