SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Best Technique to Pad Text within a div?

  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
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,474
    Mentioned
    40 Post(s)
    Tagged
    1 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.
    How well do you know your JavaScript from your jQuery?
    Check out SitePoint's latest JavaScript challenge


    My blog

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
  •