SetEffect & Center align Layout

Hi, I am trying to disable collapse and resize cells in Layout:

function initLayout() {
var dhxLayout = new dhtmlXLayoutObject(“divLayout”, “4C”, “dhx_blue”);
dhxLayout.cells(“a”).setWidth(700);
dhxLayout.cells(“a”).setText(“Welcome to our website!”);
dhxLayout.cells(“b”).setText(“Our Projects”);
dhxLayout.cells(“c”).setText(“Our Projects”);
dhxLayout.cells(“d”).setText(“Our Projects”);
dhxLayout.setEffect(“resize”, false);
dhxLayout.setEffect(“collapse”, false);
var menu = dhxLayout.attachMenu();
}

But it is not working. I am still able to collapse and resize the cells. And how do I center align the layout in a web page? This doesn’t work:

Currently, I am aligining layout by setting the left margin. But it looks weird if I change screen resolution. Thanks.

Hello,

setEffect is just for cells’ behaviour (highlight or not), try fixSize instead:
docs.dhtmlx.com/doku.php?id=dhtm … el_fixsize

Please clarify your second question.