<style> .shadydiv {width:600px; background-color:#cecece; position:relative; top:25px; left:25px;}/*this is the div beneith*/
.shadydiv div {width:600px; background-color:#797979; border: 2px solid #000000; color:white; padding: 10px; position: relative; top:-8px; left:-9px;}/*this is the div on-top*/ </style>
</head> <body>
<div class="shadydiv"><!-- the div beneith --> <div><!-- the div on-top --> <h1>Enter your text or whatever here.</h1> <p>Your content or images can go in this spot.</p> <img src="" alt="Your image here" style="width:95px; height:60px; border:2px dotted white;" /> </div> </div> </body> </html>[/CODE]
@WebJoelMay 19.2006 — #This is javascript, -right? I'm a bit weak on the javascript ability. Maybe this post should be moved to the javascript forum, if that is what you want to use.
Keep in mind that about 10% of all computer users either don't have javascript ability, or have it manually turned off.
The solution I showed, -just one of several methods to meet the end-goal, is *css and should work for all browsers, irregardless of whether or not they have javascript turned on or off..
If you must have a javascript drop-shadow effect, try "www.dynamicdrive.com". They might have something.