5 ms·
I think this article misses the point a bit. Well, if having to use 6 nestled divs, large-number positive and negative margins and all kinds of bullshit like t
by hellotoby 17y ago
I think this article misses the point a bit.
Well, if having to use 6 nestled divs, large-number positive and negative margins and all kinds of bullshit like that isn’t an ugly hack, then I don’t know what is.
Point 1: If your css contains large number positive and negative margins, you are probably doing something wrong in the first instance.
Point 2: Whilst tables may be an easier/less hacky/whatever solution the fact is, is that they are terrible for accessibility. At least with your nested divs a screen reader can still (hopefully) make sense of your document and make the web a little bit nicer for someone who requires assistive technology.
Disclaimer: I'm a front-end developer so this kind of thing is my bread and butter.
- ZeroGravitas 17y agoAlso it misses the point of "CSS hacks", interpreting it to mean hacky CSS, just so they can score points. In reality a "CSS hack" is a way to write CSS that doesn't get seen by certain browsers, usually by reverse engineering and taking advantage of certain wacky interpretations of CSS. That is "hack" here is used in the good sense. http://www.webdevout.net/css-hacks http://www.webdevout.net/css-hacks