Feeling frustrated with the limitations and compatibility issues of CSS, I decided to create a new approach for structuring webpages. Instead of relying on CSS, I developed a javascript library that reads layout instructions from XML files and uses absolutely positioned divs in an HTML document.
This system allows for easy customization of page layouts without the need for extensive CSS styling. You can view an example here.
The beauty of this method is that it gracefully degrades to plain HTML if javascript is disabled, while still maintaining separate styling options. This not only simplifies cross-browser compatibility but also enables more complex layouts to be achieved with minimal effort.
Some advantages of this system include the ability to: fill available width or height, align elements within containers, pad elements without increasing size, evenly space elements, set floating behaviors, and more. These functionalities are often difficult to achieve using CSS alone.
Despite its benefits, I acknowledge that this unconventional approach may have drawbacks. What potential issues do you foresee with using this system for webpage layouts?
For those interested, the code can be found on Github.