-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended examples with Attribute Selectors #91
Comments
Hey @MartinMuzatko - these are really fun suggestions. I'm definitely going to tackle this selector type next. Before seeing this list my idea was to assign food to different people, like orders at a restaurant. There could be a little nametag in front of certain orders and I was thinking of using a For example ``". This would also make it easy to take advantage of the 'contains' and 'starts with' selectors for people with the same first name, but different last names. What do you think? |
Awesome! I love to see that you finally find some time to continue this awesome learning help. Again: Thanks for your time! |
@MartinMuzatko not sure if you've seen, but I introduced some attribute selector levels (27-32). If you have time to check them out, please do and let me know your thoughts. |
Awesome! Cool to see this finally implemented :) |
Hi there!
Since were playing around with fruits and plates and similar (no real-life examples), I'd come up with attributes that would further describe the freshness of the fruits, or condition of the plates (broken?) to use together with attribute selectors.
A few Examples
plate[condition=broken]
milk[condition*=spoiled] Attribute contains value somewhereAttribute equals exact value
apple[condition^=rotten]
Attribute begins with value
Never used this selector, but why not include it?
bento[title$=sushi]
Attribute ends with value
There are still more.
A full list can be found here: http://css-tricks.com/attribute-selectors/
Something to add: Attributes tend to be not so visible on real-life examples. Other than data- attributes, which are processed per javascript. I came up with examples which could be visible, both in the markup and also on the table. The selectors can also be used with classes and IDs of course.
Cheers,
-Martin
The text was updated successfully, but these errors were encountered: