ISSUE-201: Use numbers in a template to refer directly to the nth child?
Use numbers in a template to refer directly to the nth child?
- CSS3 Template Layout
- Raised by:
- Bert Bos
- Opened on:
- Terra Informatica's HTMLayout program (http://www.terrainformatica.com/htmlayout/) proposes an interesting shortcut for templates: if a slot's name is a number (instead of a letter), it refers directly to the child element with that number. That child is positioned in the slot and doesn't need a 'position' property. See the documentation by Andrew Fedoniouk and Ivan Goroun (http://www.terrainformatica.com/w3/flex-layout/flex-layout.htm). E.g.,
<ul style="display: '2 1'">
puts â€œtwoâ€ (the 2nd child) on the left and â€œoneâ€ (the 1st child) on the right. (Note that this requires that the names of the slots in the template are separated by spaces.)
- Related Actions Items:
- No related actions
- Related emails:
- Re: [css3-layout] A shortcut with numbers instead of letters in a template (from firstname.lastname@example.org on 2011-12-02)
- [css3-layout] A shortcut with numbers instead of letters in a template (from email@example.com on 2011-12-02)
- CSS-ISSUE-201: Use numbers in a template to refer directly to the nth child? [CSS3 Template Layout] (from firstname.lastname@example.org on 2011-12-01)
No additional notes.
Display change log