Jump to content

the ol' div inside a div

Recommended Posts

Hey Guys, I am trying to figure out how to have the outer div's width and height equal 100%, while the inner div's width and height are 100% minus a 10px padding around the whole inner centered horizontally and vertically. I just can't seem to make it work. The outer div would have a black background while the inner div would have a grey background, making a 10px black border around the grey area no matter the size of the window it's in. Any help would be appreciated.

Link to post
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...