Re:Incomplete List of Mistakes in the Design of CSS
by olavk on Tuesday October 27, 2015 @05:10AM
(#10456938)
Can you elaborate? Why only two things?
[ Parent
| on HN ]
Re:Incomplete List of Mistakes in the Design of CSS
by kayamon on Wednesday October 28, 2015 @03:29AM
(#10463197)
Well not _only_ two things, but the idea is that you need to specify _relationships_ between objects. You can't do that by just considering each object in isolation.
- "A goes TO THE LEFT of B"
- "The header goes ABOVE the content"
- "The list goes INSIDE the table"
- "The menu goes BEFORE the advert"
You could try and combine more than two objects together in a single rule, but it's obviously easier to specify the rules one pair at a time.A layout language without prepositions isn't much of a layout language at all.