Jump to content

[SOLVED] div with relief div


Lodius2000

Recommended Posts

my css sucks, I have a white div, and I want a gray div behind it with relief, like a poor man's drop shadow

 

heres my code for the white box

.container
{
background-color: #ffffff;
width: 701px;
margin-left:auto;
margin-right:auto;
margin-top: 35px;
text-align:center;
padding-bottom: 30px;
}

 

then the html

<div class="container">
<p>some</p>
<p>content</p>
</div>

 

 

feel free to change .container (I think this is going to require the creation of an even larger container to hold the white and gray boxes), but it must be centered on the page, be 35px down from the top and have 30 px of padding on the bottom

 

the gray box I want to be 7 pixels to the right and 7 to the bottom, like in the sample image I attached (though it is not to scale)

 

can someone please help, Ive been scouring the web and tried about 10 or so methods but I cant seem to adapt them to what I need.

 

thanks a lot

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.