html - Auto adjust my background image size -


i've been googling awhile , none of answers seem match need, need me this, thanks.

my personal website is: http://simonykhsu.com refrences

my code background image

<div class="landing-header" style="background-image: url('skitrip_owlshead.jpg');"> 

enter image description here

i've tried implementing background image code cant find section in css file make background go skin color

<div id="image-container">          <img id="image" src="skitrip_owlshead.jpg" alt="middle"/>     </div> 

this looks like

and second code above doesnt seem bring image middle...

for centering image , set backgroud color can in image-container div

<div id="image-container" style="text-align:center; background-color:#ccc;">      <img id="image" src="skitrip_owlshead.jpg" alt="middle"/> </div> 

#ccc sample color ... set color code..


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -