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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.