Yep i found that but not sure how to achieve this?
currently looks like
Code: //START COLLAPSING TOP1:)
$top1 = 0;
if ($this->countModules('user1')) $top1++;
if ($this->countModules('user3')) $top1++;
if ($this->countModules('user2')) $top1++;
if ( $top1 == 3 ) {
$top1width = '33.3%';
} else if ($top1 == 2) {
$top1width = '49%';
} else if ($top1 == 1) {
$top1width = '100%';
}
but can i have user1 as 500px and user2 user3 as 50% of what left?
would something like this work
Code:
//START COLLAPSING TOP1:)
$top1 = 0;
if ($this->countModules('user1')) $top1++;
if ($this->countModules('user3')) $top1++;
if ($this->countModules('user2')) $top1++;
if ( $top1 == 3 ) {
$top1width = '500px';
} else if ($top1 == 2) {
$top1width = '50%';
} else if ($top1 == 1) {
$top1width = '50%';
}
somehow i don't think that will work as it looks like i can only set each module in correspondence to other modules?
cheers