
Search In
Check if image link is broken in page and replace it with the alt text and open the blank page when user click on it
$('img').each(function( ) {
$( this ).error(function(){
var img_path = $(this).attr('src');
Bootstrap offers you three class for images tag. These classes have some styles for images which make your work easy. The three classes are below -
1. .img-rounded-
This class adds rounded border as 6-pixel border radius of the image.
2. .img-cir
When we set the aspect fit property of image view then the size of image get reduced because it sets the image according to the aspect ratio. So if we want to get the size after aspect fit the use the following code-
In the following code firs
If we need to display the preview of the image on upload, we can write a simple javascript function to perform the same this can be done as :
<!DOCTYPE html>
<html>
<body>
<script>
function img(x) {
document.getElemen
Here is the example that shows converting an image file to base 64 string code. It can be done by the canvas method.
HTML5 provides the canvas tag that is used to draw a canvas.
For converting an image file to base 64 string you need to create a can
You may have seen several mobile applications with round or circular image view. It is mostly used while displaying User's profile pic or in a tabular representation of images. You can do it very easily without using third party classes or Libraries.
Hii,
In this blog, I am going to share an example in which i have created a pure CSS Slider using few CSS properties like transitions, transforms,input:checked functionality and animations.
Slider is the most commonl
Hi all,
This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental
Talking birds
There are many species of birds that can mimic human speech. Among those, parrots are the most widespread in popular culture and associated with the ability of speech, although other birds like crows, mynas or starlings can, too, mimic
