What is the best technique to use to pad text within a div?
Thanks
| SitePoint Sponsor |


What is the best technique to use to pad text within a div?
Thanks

Hi there,
Erm, by using padding?
e.g.
HTML Code:<div class="padMe"> <p>Some text</p> </div>Code CSS:.padMe{padding:15px;}
Or did I misunderstand something?
Edit: If so, maybe you could describe what you are trying to do in a bit more detail, or even better, provide a code sample.
How well do you know your JavaScript from your jQuery?
Check out SitePoint's latest JavaScript challenge
My blog
Bookmarks