No, layout is not trivial. However, the approach CSS has taken to solving it is unnecessarily complicated compared to the complexity of the problem. It is without a doubt the most complicated, worst system I've ever seen for layout. Once upon a time I was writing GUI apps using Xt and Motif: that made more sense than CSS does.