html - set background color with a background image -



html - set background color with a background image -

i have background image set using id , want body's background black while background image loads user see black instead of default while background color.

when set background black in body through css background image cant seen anymore, has gone behind black background, how can create image show on top , black behind image?

( ive tried setting z-index 200 or didnt work set -100 want )

html:

<img src="background_optimized_more.jpg" name="fsbg" width="2022" height="1460" id="fsbg">

css:

html, body{ width: 100%; height: 100%; margin: 0; overflow-x: hidden; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background: #000; } #fsbg { width: 100%; height: auto; position: fixed; z-index: -100; left: 0px; top: 0px; min-height: 100%; min-width: 1040px; }

background take precedence on more specific rules. seek using background-color instead:

background-color: #000;

then, specify background image, utilize background-image.

html css image

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 -