Such a thing as cellpadding in div?

I’m trying to move away from using tables, and use div tags along with css for pretty much everything. My question, is there such an attribute for the div tag (or something I can add to the stylesheet class of my div tag) that is the same as cellpadding for tables? My text is all to the side and it looks funky. :wall: Thanks.

Here you go:
CSS:


div.padded {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

HTML:


<div class="padded">
<p>This is a padded div</p>
</div>

Perfect, thanks! :tup: