CSS selectors by no means stop to amaze me in how highly effective they are often in matching advanced patterns. Most of that flexibility is in dad or mum/baby/sibling relationships, very seldomly in worth matching. Think about my shock after I discovered that CSS permits matching attribute values regardless off case!
Including a {house}i
to the attribute selector brackets will make the attribute worth search case insensitive:
/* case delicate, solely matches "instance" */ [class=example] { background: pink; } /* case insensitive, matches "instance", "eXampLe", and so on. */ [class=example i] { background: lightblue; }
The use circumstances for this i
flag are doubtless very restricted, particularly if this flag is knew data for you and also you’re used to a normal lower-case normal. A free CSS classname normal can have and would proceed to result in issues, so use this case insensitivity flag sparingly!
JavaScript Promise API
Whereas synchronous code is simpler to comply with and debug, async is usually higher for efficiency and suppleness. Why “maintain up the present” when you may set off quite a few requests directly after which deal with them when every is prepared? Guarantees are turning into an enormous a part of the JavaScript world…
Ship Textual content Messages with PHP
Children lately, I inform ya. All they care about is the expertise. The video video games. The bottled water. Oh, and the texting, at all times the texting. Again in my day, all we had was…OK, I had all of this stuff too. However I nonetheless do not get…
Morphing Components Utilizing MooTools and CSS
Morphing a component between CSS lessons is one other nice trick the MooTools JavaScript library lets you do. Morphing is not essentially the most sensible use of MooTools, nevertheless it’s nonetheless a trick at your disposal. Step 1: The XHTML The block of content material that may change is…