Jump to content

the ol' div inside a div


chasethemetal

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 comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...