SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2006
    Posts
    291
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Best Technique to Pad Text within a div?

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

    Thanks

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,313
    Mentioned
    178 Post(s)
    Tagged
    9 Thread(s)
    Hi there,

    Quote Originally Posted by accelerator View Post
    What is the best technique to use to pad text within a div?
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •