4 ms·
If you are doing "table-based layouts", you're doing it wrong. I'm a great fan of zen, specially for CSS, but every editor has had autocomplete/expansion for y
by ricardobeat 14y ago
If you are doing "table-based layouts", you're doing it wrong.
I'm a great fan of zen, specially for CSS, but every editor has had autocomplete/expansion for years, and it ends up being nearly the same speed (t+tab, tr+tab, td+tab, cmd+alt+d x5) once you internalize it. I even ended up removing it from ST2 since it conflicts with default shortcuts. CSS is a whole different story, I haven't seen any editor with expansions as complete as Zen.
- eps 14y agoIf you decide to preach, it helps to know the subject. Table-based layouts is the only practical option for HTML emails, which is exactly what these guys were doing.
- anthonyb 14y agoFrom the article: > writing an XSLT stylesheet to transform an in-memory representation of a customer's bill into an HTML version for display on our site. If you decide to counter-preach, it helps to read the article and understand it first.
- bmj 14y agoSo HN is all wrong, eh? It has been argued here before that HTML is nothing more than "assembly" for the browser, and if it renders properly, why does it matter if the layout is done via nested tables or CSS?
- ricardobeat 14y agoLooks like you missed most of the discussion: semantics, or machine-readable information, and accessibility matter enourmously on the web. At the end of that line of thought is just presenting a bitmap image, why bother with HTML at all? :)
- Myrth 14y agoFirst, semantics are not needed in many cases, like protected control panels. 2nd, semantics can be wrapping data within table cells. The original problem with tables was using them together with spacers to create layout, not much other uses. There's no inherent problem with tables, it is perfect for tabular layout. Data grids are tabular, most forms are tabular.
- underwater 14y agoHe said he was creating an invoice template, in which case a table makes sense.
- ricardobeat 14y agoMaybe, we don't know what it looked like. These days you can do anything with CSS, even if by using display:table and family for emulating table behaviour while keeping nice markup. Tables are ok; table-based layouts are not. Anyway, I was just getting back at the author for mocking the gist of my current profession - upon seeing the headline I thought he was promoting the use of WYSIWYG tools or something.