Ruby on Rails
Wednesday, May 1, 2013
On Wednesday, May 1, 2013 1:43:06 PM UTC+1, Ruby-Forum.com User wrote:
But I am not comfortable with some notation used here,so thought if
anyone out there help me to redirect to a resource where I can learn
such techniques.
You need to read up on css selectors
My hard confusion is with the below lines:
***** "#ires ol li" *****
- when to write this way?
- what `#` stands for? Looking at the source page I saw `ires` is one
id. -- when I need to use such `#` and when `.`?
#foo finds an element with id foo whereas .foo finds an element with class foo. Which one to use depends on the markup.
- Is there any other operators like `#` and `.` when using css?
Yes, there are a whole bunch, such as the pseudo selectors (:not, :nth-child), attribute selectors etc.
https://developer.mozilla.org/en-US/docs/CSS/Getting_Started/Selectors
has fairly exhaustive info
Fred
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/4SyEsAD6UOsJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment