Hi,
In the good old days (version 1.9) got I made a script snippet + css
The idea with this groupx field is as follow:
If only 1 column it fills 100%
If 2 columns each fills 50%
If 3 columns each fills 33%
I can't figure out how to make it for version 3
Can anybody help me med dette?
The old script looked like this:
<div class="column10">
<?php for ( $i = 0, $n = sizeof( $jSeblod->overskrift_groupx)-1; $i < $n; $i++ ) { ?>
<div class="ED-<?php echo $n ?>">
<b><?php echo $jSeblod->overskrift_groupx[$i]['overskrift']->value; ?><br></b>
<?php echo $jSeblod->overskrift_groupx[$i]['tekst']->value; ?><br>
<b><span style="float:left;margin-top:0px;"><?php echo $jSeblod->overskrift_groupx[$i]['pris_kuvert']->value; ?> <span style="font-size:16px;font-style:bold;padding-left:10px;"><?php echo $jSeblod->overskrift_groupx[$i]['pris']->value; ?></span></b>
</div>
<?php } ?>
And the css:
.column10{
margin:0px 0px 0px 8px;
padding:0px 0px 0px 0px;
border:2px solid #000000;
position:relative;
color:#000000;
font-family: Arial,Helvetica,Arial,Sans-Serif;
font-size:11px;
font-style: normal;
z-index:3;
float:left;clear:none;
top:5px;
}
/*Add by Ed*/
div.ED-3 {width: 178px; float: left; margin:5px 7px 0px 6px;border:0px solid #000000;}
div.ED-2 {width: 273px; float: left; margin:5px 8px 0px 5px;border:1px solid #000000;}
div.ED-1 {width: 485px; float: left; margin:5px 5px 0px 5px;border:1px solid #000000;}
Thanks in advance
Best regards
Boris