Search for a Functional CSS Layout

JavaScript Disadvantages

The main disadvantage is that 65 lines of JavaScript need to be included in the head of the html file. A server-side include will eliminate redundancy and keep your code clean, but it is still more code that must be sent to the client with each page load. Calls also have to be made to autoSize() for each layout element. Using JavaScript reduces the chances of the page working correctly in every browser. However, I still think this layout has promise, especially since all the new browsers support it very well. As mentioned before, the disadvantage of including extra JavaScript code in every file can be avoided by calling the autoSize() function from the body.onload() handler.