Jump to content

Background image no repeat


phpgoal

Recommended Posts

This is working.

#header-wrapper img{   top: 0;   left: 
0;   height: 307px;   width: 100%;}
 
<div id="header-wrapper" ><img src="sky.JPG"/>
</div>

I want to set the sky image in background instead so that i can have other links on the top of the background. Could you please help?

  • 4 weeks later...

Instead of using an <img> tag, have you tried using the background-image property:

https://developer.mozilla.org/en-US/docs/Web/CSS/background-image

 

Note that you could also utilize the background property:

https://developer.mozilla.org/en-US/docs/Web/CSS/background

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.