Simple jQuery Read More/Less Example

In this example I demonstrate how to hide text and add “read more” and “read less” links using jQuery. This applies to a single block of text, or multiple instances of text on the same page.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

Install nodejs on Ubuntu

Fire up your terminal on Ubuntu Operating System and install nodejs using following commands.

1
2
3
4
sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

JavaScript’s DOM Vs BOM

JavaScript evolved with the code abstraction in mind. It was implemented with following sections.

  • JavaScript Core(Ecma Script Specifications)
  • DOM (Document Object Model)
  • BOM (Browser Object Model)

[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

CSS Table’s border-collapse property

Collapse or detach the borders for the cells inside the table using this property. It supports on all the major browsers. border-collapse property has three values – collapse, separate and inherit.
[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail

CSS3 Word Wrapping

CSS3 has word wrapping effect, which supports on following major browsers.

IE, Firefox, Chrome, Safari and Opera.

1
2
3
div#container{
   word-wrap:break-word;
 }

[Read more...]

facebooktwittergoogle_plusredditpinterestlinkedinmail