Quote:
Originally Posted by Excavator
Hello loamguy1,
If your shadow is an actual image that you using as a background you can easily position that. If your shadow is CSS created, neither margin or padding will move it down.
Look at it like this once -
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
html, body {
margin: 0;
background: #fc6;
}
#outer-container {
width: 800px;
margin: 50px auto;
background: #ccc;
box-shadow: 0 0 20px #8493A6;
}
#inner-container {
height: 500px;
width: 760px;
margin: 0 0 0 -380px;
position: relative;
top: -20px;
left: 50%;
background: #fff;
}
</style>
</head>
<body>
<div id="outer-container">
<div id="inner-container">
<!--end inner-container--></div>
<!--end outer-container--></div>
</body>
</html>
|
Ok, thanks for the info, excavator.
The shadow image is an actual png image, 27w x 5h.
Once I go back to work tomorrow I'm going to try this out and post some code if I'm still stuck (which is probably likely, lol).