Author: michiel
Date: 2009-11-27 13:31:20 +0100 (Fri, 27 Nov 2009)
New Revision: 40009

Modified:
   speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.css.jsp
Log:
can calculate a bit more then

Modified: speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.css.jsp
===================================================================
--- speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.css.jsp        
2009-11-27 12:26:21 UTC (rev 40008)
+++ speeltuin/mihxil/portal/src/main/webapp/mmbase/portal/portal.css.jsp        
2009-11-27 12:31:20 UTC (rev 40009)
@@ -23,27 +23,28 @@
   border: none;
   background-color: #ccc;
   overflow: hidden;
+  margin: 0 0 0 0;
 }
 
-<c:forEach begin="1" end="2" var="i">
+<c:forEach begin="1" end="${cols}" var="i">
 .block.width${i} {
   width: ${width * i}px;
 }
 </c:forEach>
 
-<c:forEach begin="1" end="2" var="i">
+<c:forEach begin="1" end="${rows}" var="i">
 .block.height${i} {
   height: ${height * i}px;
 }
 </c:forEach>
 
-<c:forEach begin="0" end="3" var="i">
+<c:forEach begin="0" end="${cols - 1}" var="i">
 .block.x${i} {
   left: ${offsetx + width * i}px;
 }
 </c:forEach>
 
-<c:forEach begin="0" end="3" var="i">
+<c:forEach begin="0" end="${rows - 1}" var="i">
 .block.y${i} {
   top: ${offsety + height * i}px;
 }

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to