Tuesday, 27 January 2015 14:26

Option for clearing rows in multicolumn maps

Request new features on Xmap component
Forum rules

Option for clearing rows in multicolumn maps

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


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

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

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 2 guests