|
| |
|
|
pcguy
Posts: 137 From: None Status: offline
|
Can someone explain? - 3/20/2009 10:11:48
Hi all, I need to know why this is happening with my CSS... If I have a mainContainer, lets say set at 760px Then I have a DIV within it, set to 100%..... If I tell that DIV to have a background color of say black, (everything is still ok), and then tell it to use, say, 25px of padding, I would expect the inside padding of this DIV to do just that.... But what happens is the right side of the DIV, flows outside of the mainContainer - as if the padding has caused it to overflow.... I've since added another DIV within the problematic DIV, and given it 25px of margin, which gets me the effect I need, without the problem overflow... But I can't figure out why that would happen? Can anyone explain? Thanks!
|
|
|
|
pcguy
Posts: 137 From: None Status: offline
|
RE: Can someone explain? - 3/20/2009 13:27:11
So you just don't put a width on the inner DIV?
|
|
|
|
pcguy
Posts: 137 From: None Status: offline
|
RE: Can someone explain? - 3/20/2009 13:50:11
You didn't say that, but your code did....you're inner DIV didn't specify a width, so that's why I asked..... Ok, I didn't know a DIV tag assumed 100%...that's good to know. Now I understand why that was happening. Thanks for the explanation.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|