View Single Post
Old 01-07-2013, 01:41 AM   PM User | #7
loamguy1
Regular Coder

 
Join Date: Nov 2007
Posts: 106
Thanks: 13
Thanked 0 Times in 0 Posts
loamguy1 is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
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).
loamguy1 is offline   Reply With Quote