Category Archive for: "Snippets"

  1. CSS

    How to create “Stitched” look using CSS3

    Ever wanted to create a Stitched look using CSS only without using any graphic tools? Here’s a little snippet of code that lets you achieve exactly that.

  2. CSS

    CSS3 Drop Shadow Example

    One of the coolest new feature of using CSS3 is giving the effect of drop shadow to images, buttons, etc. without having to get your hands dirty with software such as Adobe Photoshop, Adobe Fireworks, etc. Here is a 1 line solution that you can use in your CSS to instantly apply CSS3 Drop Shadow […]

  3. Snippets

    WordPress Change default mail sender

    When you install a new WordPress blog, WordPress stores the email address that you provide during the initial setup and uses it on all outgoing email notifications. To keep it professional, you can change it to a different email of your choice by using this snippet.

  4. CSS

    2 lines of code: Target IE6 IE7 CSS

    Are you a designer who have had a hard time trying to maintain consistent styling across browsers like IE6 and IE7? Have you ever wondered if there is any simply solution to solve this problem? Here is a 2 line solution that will let you target IE6, IE7 CSS & solve this problem.

  5. Snippets

    WordPress: Total post count of a Category and its Child Categories

    It may be desirable to show how may posts a Category contains in it & also display the post count that the child categories of this (parent) category contains. So in WordPress to display total post count of a Category and its Child Categories, use the following little snippet of code.

  6. Snippets

    WordPress: Limit excerpt length

    Have you ever thought of showing limited information about an article on the homepage of your blog? This limited information is called “Excerpt”. It can also be called as a “Post summary” or “Description of a post”. Here is a little snippet that will let you, in WordPress, limit excerpt length.

  7. PHP

    PHP: Time difference Facebook Twitter style

    If you ever wanted to display the time elapsed in Facebook or Twitter style (recall the format: 20 minutes ago, 100 days ago?). Here is a handy little snippet in PHP, that will let you do exactly the same.

  8. JavaScript

    Javascript: Detect iPhone, iPod, iPad

    Have ever ever thought of display custom information to the user or making changes in the browser depending upon whether the user is using iPhone, iPod or iPad? Here is a snippet in Javascript: Detect iPhone, iPod, iPad using this handy snippet!

  9. PHP

    PHP: Add Date, Months, Years to current date

    Did you ever want to add date, months or years to current date in PHP but never figured out how to? Well, this little snippet can come in handy.