Hi,
I'm new to using css for positioning and I'm having trouble getting the page to look right in Firefox. What I'm trying to get is a 750px wide "inner div" that has a 1 px border and a margin all the way around of 15px contained in a container div that's 780px wide and centered on the page. Body background is colored; divs have a background of white.
What I'm getting in Firefox is the inner div has a margin on the left between the container and inner div, but not on the right or bottom.
Here's my css:
In other words, I want to have a 15px space between the inner div's border and the outer div all the way around.
Can anyone help?
Thanks!
I'm new to using css for positioning and I'm having trouble getting the page to look right in Firefox. What I'm trying to get is a 750px wide "inner div" that has a 1 px border and a margin all the way around of 15px contained in a container div that's 780px wide and centered on the page. Body background is colored; divs have a background of white.
What I'm getting in Firefox is the inner div has a margin on the left between the container and inner div, but not on the right or bottom.
Here's my css:
Code:
div.container {text-align: center; background: #FFFFFF; width: 780px; height: 480px; margin: auto}
div.inner {background: #FFFFFF; text-align: left; width: 750px; height: 450px; border: 1px solid #c0c0c0; padding: 15px; margin: 15px}
In other words, I want to have a 15px space between the inner div's border and the outer div all the way around.
Can anyone help?
Thanks!