Download Royalty Free Stock Images, Graphics, Illustrations, Music and Videos – Best Websites in 2019

Hello Folks,
Now a days people don’t want to pay for the stock images. All are looking for a FREE option.
https://unsplash.com/ and https://pixabay.com/ sites are very useful and provides royalty FREE images without charging a single coin.

There are many images are available for different categories or industries. You can simply go to the site and search anything in their directory.

Also you can search for the FREE Illustrations, Vectors and Videos.

SVG image isn’t displaying in Chrome browser

Chrome browser doesn’t support SVG format with <img src=””> tag anymore. Peoples are facing issues that they aren’t able to see their images in Chrome browser because the images are in SVG format.
So I found a solution to display SVG image in Chrome browser with <object> tag.


<object data="/images/yourlogo.svg" type="image/svg+xml" width="100" height="100" class="mylogo"></object>

You can apply CSS rules by defining a class on the <object> tag like shown in above example.
And you can also add width and height attributes on the <object> tag.

I hope this will resolve your problem in Google Chrome Browser.

How to center a DIV horizontally and vertically

After trying a lot of tricks I found this perfect solution to keep the element or DIV horizontally and vertically center.
This is worked for me and it’s working in all the main browsers. I’d personally recommend to use the below CSS rules. It’s very simple to apply.


.center{ 
  height: 300px;
  position: relative;
  border: 3px solid #fff000; 
}

.center div {
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}


<div class="center">
  <div>Lorem ipsum dolor sit amet adipiscing elit.</div>
</div>

Example:

Lorem ipsum dolor sit amet adipiscing elit.