[rspec-users] understanding "within"

Rick DeNatale rick.denatale at gmail.com
Tue Dec 23 07:49:36 EST 2008


On Mon, Dec 22, 2008 at 11:30 PM, Jeremiah Heller <jeremiah at itmustbe.com>wrote:

> On 22 Dec 2008, at 16:03, Sarah Allen wrote:
>
>> Could someone describe what "table > tr:nth-child(#{pos.to_i+1})" does?
>> by semantic pattern matching I could guess that "ol >
>> li:nth-child(#{pos.to_i+1})" would also work, but it would be nifty to
>> know why.
>>
>> Thanks,
>> Sarah
>>
>
> Hi Sarah - et al, I'm  a newb too - thanks for the sweet tools! The W3
> explains the css selector syntax:
> http://www.w3.org/TR/CSS2/selector.html#q2


This might also be of help
http://reference.sitepoint.com/css/understandingnthchildexpressions

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RubyRedRick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081223/9b315740/attachment.html>


More information about the rspec-users mailing list