You should really consider using one of the JS frameworks if you are trying to achieve complex desktop-like layouts.
Have a look at ExtJS http://extjs.com or JQuery http://jquery.com
For example, in ExtJS to create a layout such as you are attempting it is as simple as:-
PHP Code:
var toolbar = new Ext.Toolbar({...});
var sidebar = new Ext.tree.TreePanel({...});
var content = new Ext.Panel({...});
var vp = new Ext.Viewport({
layout: 'border',
items: [{
region: 'north',
height: 32,
items: [toolbar]
},{
region: 'west',
width: 200,
items: [sidebar]
},{
region: 'center',
items: [content]
}]
});
There is obviously a little more to be done with the above example but you get the idea.
The drawback of these JS libraries is that they are quite large so if you are just serving up a trivial "about me" page or similar then you obviously wouldn't go with this.
Bookmarks