CSS grid/layout framework with focus on fixed elements and single page full screen layouts

后端 未结 9 1512
予麋鹿
予麋鹿 2021-02-09 22:05

Rule of thumb - if you\'re messing with CSS too much in your layouts, switch to a framework. I\'ve been going over the dozens of grid/layout frameworks out there and most of the

9条回答
  •  误落风尘
    2021-02-09 22:44

    I don't know why you have been down voted on your answer. Everyone seems to agree that "There's no need for a specialized framework" is at least part of a good answer. Of course there are disadvantages in using table, but you seem to be aware of it, and listing the downsides made a very consistent answer in my opinion.

    Despite of considering your answer, I would work with a Flexbox model. It seems more appropriate (as very well put by @cimmanon in another answer), semantic and even easier to maintain than tables. Besides, using up to date techniques may extend the life time of your application. Have a look at this library if your concern is backwards compatibility - http://flexiejs.com/

    You can also simulate a table's behavior using other elements and a css Table model like:

    . Take this fiddle as example - http://jsfiddle.net/JWqVQ/

    Here is a bit more about different rendering options - https://developer.mozilla.org/en-US/docs/Web/CSS/display

提交回复
热议问题