Web development

Some useful links I try to save here to help me with web development and hopefully other developers out there!

Sunday, October 20, 2013

Really cool concept of automatically switching to lighter or darker version of an element depending on the brightness of images behind it.

Link here.
Posted by Unknown at 1:02 AM No comments:
Email ThisBlogThis!Share to XShare to Facebook
Labels: background
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Contributors

Unknown
View my complete profile

Internet Defense League

Member of The Internet Defense League

Quick tips

It's faster to use .length rather than .size() in jquery as .size() function return .length of the element itself.
Selectors
In css, browsers read the selectors from the right to left. And, as a rule, try to not to use selectors that are type selectors like li, p etc.
z-index will only work on an element whose position property has been explicitly set to absolute, fixed, or relative.
In a function declaration in javascript, the function stands on its own and does not need to be assigned to anything.
eg-
function multiple(a, b) { return a * b; } // Note, no semi colan is needed
IE Hack
When creating a good, solid markup, at times when IE does not seem to play nicely, try applying the css property { zoom : 1; } and see if this fixes the issue. 90% of the times it fixes the display problems in IE. This css only works for IE.

Total Pageviews

Site Archive

  • ►  2015 (2)
    • ►  September (1)
    • ►  July (1)
  • ►  2014 (13)
    • ►  December (2)
    • ►  August (2)
    • ►  July (1)
    • ►  March (5)
    • ►  February (2)
    • ►  January (1)
  • ▼  2013 (80)
    • ►  December (1)
    • ►  November (2)
    • ▼  October (1)
      • Really cool concept of automatically switching to ...
    • ►  September (1)
    • ►  August (1)
    • ►  July (7)
    • ►  June (10)
    • ►  May (12)
    • ►  April (8)
    • ►  March (12)
    • ►  February (11)
    • ►  January (14)
  • ►  2012 (119)
    • ►  December (15)
    • ►  November (9)
    • ►  October (17)
    • ►  September (13)
    • ►  August (11)
    • ►  July (8)
    • ►  June (16)
    • ►  May (9)
    • ►  April (21)

Popular Posts

  • Learn how to use flexbox to position elements
    Link here .
  • 50 Javascript libraries for charts and graphs
    Link here .
  • A command line tool to generate css sprites.
    Link here .
  • A fun piano using jquery !
    Link here .
  • Nice Image Blur Plugin
    Link here .
  • Get your easings animations right.
    Link here .
  • Write better html using HTML inspector plugin
    Link here .
  • Make lasers using css
    Link here .
  • Nested sortable lists using jquery
    Link here . Create easy to use sortable lists using jquery. The inputs can be given as array or json.
  • A flyout image slider using jquery, css3
    Link here .