Friday, 25 July 2014 17:45
beggarly

Option for clearing rows in multicolumn maps

Request new features on Xmap component
Forum rules
This

Option for clearing rows in multicolumn maps

Postby fedefil » Mon Oct 29, 2007 10:47 am

Hi,

I suggest you to add an option for separating rows in multicolumn maps with a clearing element, to avoid incorrect stacking of floating divs.

I tried modifying your code this way and it works (my additions are marked FF):

[code:1a3cec28]$col = 0; // FF
foreach( $root as $menu ) {
...
$col++; // FF
if ($sitemap->columns > 1 && (intval(fmod($col, $sitemap->columns)) == 0)) { // FF
echo ''; // FF
} // FF
}[/code:1a3cec28]

The above is just a quick hack. There is obviously room for improvement and optimization.

Ciao,
Federico
fedefil
Fresh Boarder
Fresh Boarder
 
Posts: 3
Joined: Thu Oct 18, 2007 12:59 pm

Return to New Features



Who is online

Users browsing this forum: No registered users and 5 guests

cron