Le 26 oct. 2013 à 14:42, Micky Hulse <[email protected]> a écrit :

> When using a flexbox layout, and re-ordering columns (for example)
> using the "order" property, is there a way to target the "visible"
> first/last child?
> 
> Everything I try only affects the actual ordering of elements in the
> source code, not the ordering that’s set via "order".

Directly? I don’t think so - all those (:first-*, :last-*) pseudo-classes 
target real elements in the DOM.

But if you know that the e.g. second div in your layout will be moved to be 
visibly the first one, you can use the nth-child pseudo-class:

div:nth-child(2) { background: lime }

Philippe
--
Philippe Wittenbergh
http://l-c-n.com




______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to