[css-d] Select adjacent, but separately nested elements?

2013-03-14 Thread Markus Ernst
Hello I have a structure of nested elements somehow like: article div section table ... /table /section section pThis second section is not always present!!/p /section /div /article nav div ul id=navi1 ... /ul ... /div /nav

Re: [css-d] Select adjacent, but separately nested elements?

2013-03-14 Thread Tom Livingston
Can you apply the border to the second section instead of the nav? — Sent from Mailbox for iPhone On Thu, Mar 14, 2013 at 7:26 AM, Markus Ernst derer...@gmx.ch wrote: Hello I have a structure of nested elements somehow like: article div section table ...

Re: [css-d] Media query syntax when a separate style sheet is included

2013-03-14 Thread Micky Hulse
Sorry, my subject line should read: Media query syntax when a separate *print* style sheet is included __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ --

Re: [css-d] Select adjacent, but separately nested elements?

2013-03-14 Thread Markus Ernst
Am 14.03.2013 14:25 schrieb Tom Livingston: Can you apply the border to the second section instead of the nav? Thank you for this idea. With the sample code I provided, this would do it indeed. Anyway as the content is CMS driven, I have no control on the number of sections above the

Re: [css-d] Select adjacent, but separately nested elements?

2013-03-14 Thread Philippe Wittenbergh
Le 15 mars 2013 à 07:38, Markus Ernst derer...@gmx.ch a écrit : I wonder how people use the adjacent selector with HTML5 elements that need to be nested, as legacy browsers do not recognize the new elements, such as: article div class=article ... /div /article footer div

Re: [css-d] Media query syntax when a separate style sheet is included

2013-03-14 Thread Philippe Wittenbergh
Le 15 mars 2013 à 06:18, Micky Hulse mickyhulse.li...@gmail.com a écrit : Heck, do I even need the all and bit at that point? @media (min/max-width) { … } I never use these 'screen', 'all', … media types ( OK, I'm lying… I only use them when strictly necessary, e.g only when I want the MQ

Re: [css-d] Media query syntax when a separate style sheet is included

2013-03-14 Thread Micky Hulse
Hi Philippe! Thank you so much for your CSS guru help, I greatly appreciate it. :) On Thu, Mar 14, 2013 at 7:00 PM, Philippe Wittenbergh e...@l-c-n.com wrote: I never use these 'screen', 'all', … media types ( OK, I'm lying… I only use them when strictly necessary, e.g only when I want the MQ

Re: [css-d] Media query syntax when a separate style sheet is included

2013-03-14 Thread Philippe Wittenbergh
Le 15 mars 2013 à 11:19, Micky Hulse mickyhulse.li...@gmail.com a écrit : 1. IIRC, I think I read somewhere that using a separate style sheet will allow support in older IEs (would the alternative be @media print { ... }? Is that the technique you use to keep your print/screen styles