SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Addict beebs93's Avatar
    Join Date
    Jul 2010
    Vancouver, Canada
    0 Post(s)
    0 Thread(s)

    Wrapped text with equal side padding

    I'm trying to achieve text with a background color that wraps with a gap between each wrapped line.


    If you use a block element you don't get the gap between wrapped lines, so I can get close using a <span>, but the left & right padding only applies to the very beginning and very end of the <span>.

    I could achieve the effect just using a different <span> or block element for each line and fudge the wrapping, but then it defeats the purpose.
    Attached Images Attached Images
    "To be truly dedicated to something
    you must be willing to betray it.
    " -SW


Posting Permissions

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