SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot asterikx's Avatar
    Join Date
    May 2002
    Location
    Montana
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Indenting the first line of each paragraph

    How can I use CSS to indent the first line of each paragraph?

    -- asterikx
    Manifest Creative is located in beautiful Bozeman, Montana.

  2. #2
    SitePoint Guru moonman's Avatar
    Join Date
    Dec 2000
    Location
    The Sea of Tranquility
    Posts
    696
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    text-indent: 25

    Obviously you can change the 25 to whatever you like.

  3. #3
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    p {
    text-indent:20px;
    }

    But if I remember correctly IE does not like this, not much else you can do sorry...
    Jordan Windebank

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not sure if this works, but:
    padding-left:5px;
    i remember something like it indented itself, and not the WHOLE paragraph like i wished to, but then again, i could be wrong (like always )
    InQuE

  5. #5
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by InQuE
    not sure if this works, but:
    padding-left:5px;
    i remember something like it indented itself, and not the WHOLE paragraph like i wished to, but then again, i could be wrong (like always )
    Using padding will indent the entire block of text
    Jordan Windebank


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
  •