|
pcguy -> 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!
|
|
|
|