rv20 Posted May 28, 2009 Share Posted May 28, 2009 If you have a div with and set the body bgcolor to some color then the padding still displays white, i would expect that, is thereany way around this though? Link to comment https://forums.phpfreaks.com/topic/160077-set-the-background-color-for-padding/ Share on other sites More sharing options...
TheFilmGod Posted May 29, 2009 Share Posted May 29, 2009 That doesn't sound right. Care to provide an example. Background and padding are not interlinked. Link to comment https://forums.phpfreaks.com/topic/160077-set-the-background-color-for-padding/#findComment-844658 Share on other sites More sharing options...
DarkSuperHero Posted May 29, 2009 Share Posted May 29, 2009 short answer to op, no...I would suggest using a div inside this div to create this spacing and give the appearance you may be looking for. Link to comment https://forums.phpfreaks.com/topic/160077-set-the-background-color-for-padding/#findComment-844691 Share on other sites More sharing options...
SuperBlue Posted May 31, 2009 Share Posted May 31, 2009 No you can't set the background color of padding. But you can add a border instead, which could essentially provide the same effect in most cases. Given that you use the w3c box model of cause. Link to comment https://forums.phpfreaks.com/topic/160077-set-the-background-color-for-padding/#findComment-846175 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.