html - Remove white border from image -



html - Remove white border from image -

tried border: none; no avail.

#header .bg { float: right; max-width: 100%; max-height: 100%; border: none; }

now html...

<body> <div id="header"> <img class="bg" src="http://hdwallpapermania.com/wp-content/uploads/2014/04/beautiful- beach-landscape-hd.png"> </div>

why don't use:

<div id="header" style="background-size:cover; background-image:url(http://hdwallpapermania.com/wp-content/uploads/2014/04/beautiful-beach-landscape-hd.png);">

instead? or, better:

<div id="header"></div>

css:

#header { background-size: cover; background-image: url(http://hdwallpapermania.com/wp-content/uploads/2014/04/beautiful-beach-landscape-hd.png); }

html css image border

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -