Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Move photo onto another

I need to know how can I move a picture onto another picture, I have the header and the logo and I want the logo to be on the header.

HTML

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

CSS

#header {

height: 107px;
margin: 0px 0px 0px 0px;
position:auto;
background-image: url(img/header.png);
background-repeat: repeat-x;

}

#logo {
width:279px;
height:71px;
margin: 15px 0px 0px 25px;
background-repeat:no-repeat;
background-image: url(img/banner.png);
}

1 Answer

in your css by using position: top: bottom: left: right:

here is a link to understand the process

http://css-tricks.com/video-screencasts/110-quick-overview-of-css-position-values/

Thanx exactly what I need