Amezis 0 Report post Posted April 17, 2005 Is it possible to use spacing/spadding in <div> tags, like in <table> tags? Share this post Link to post Share on other sites
Vacant 0 Report post Posted April 17, 2005 Is it possible to use spacing/spadding in <div> tags, like in <table> tags? 130555[/snapback] Yup. .theDiv {padding-left:2px;padding-right:2px;padding-top:2px;padding-bottom:2px;} If you want to apply padding to everything, use... .theDiv {padding:2px;} Spacing (as in, distance from surrounding divs or whatnot) is as follows.... .theDiv {margin-left:2px;margin-right:2px;margin-top:2px;margin-bottom:2px;} Or for all properties in one declaration... .theDiv {margin:2px;} Of course you should be using ems, but thats jut an example Share this post Link to post Share on other sites