So you are new to html and CSS. This is not a problem, but your question is a bit vague for the SO common format .
However, in a nutshell:
<style> #phone {background: url('http://www.knowabouthealth.com/wp-content/uploads/2010/06/iphone.jpg') center no-repeat; width: 300px; height: 392px; border: 1px solid #000000;} #display {background: #000000; margin: 80px auto 0px; width: 164px; height: 246px; color: #FFFFFF;} </style> <div id="phone"> <div id="display"> Hello! What is up? Miley rocks! </div> </div>
Real-time example: http://jsfiddle.net/cbn4L/
This, of course, is a very simple example. And since you can see that the inner container is not an image, but text. Technically, you can add an image there now .. but since we will weaken you into the world of HTML and CSS, this is the best example and may possibly improve your concept :)
Kalle H. VΓ€ravas
source share