How to fit image size to div size in HTML
To fit image size to div size in HTML you need to set max-width and max-height without applying an explicit width or height. Sample HTML
All the Code Snippets and Samples you need
To fit image size to div size in HTML you need to set max-width and max-height without applying an explicit width or height. Sample HTML
To empty an array in Javascript you can use the following methods. Sample Javascript This code will set the variable A to a new empty array (take care if you…
To check a checkbox with jQuery you can use the snippet below. Sample jQuery 1.6+ Sample jQuery 1.5 and below
To get selected value of dropdownlist using JavaScript you can use the following snippet. Sample Javascript
To check if one one string contains another string in Javascript you can use the following method. Sample JS
To Remove empty array elements in PHP you can use the array_filter method. Sample PHP
To get current Year in PHP you can simply use the following method. Sample PHP
To flip a image in CSS you can use the following snippet.
To set the ios bookmark icon in HTML you can use the following snippet. Sample HTML If your icon is already glossy, you can prevent the device from adding its…
To style a link by filetype in CSS you can use the following snippet. Sample CSS