1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max


Sorry, but your account doesn't have permission to do that.

CSS: Inline elements and padding

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    2.50/5

CSS » Cross Browser Development — over 3 years ago
Have you ever tried to add padding to <li> elements that have been set to “display: inline”? Did you find that the padding seemed to be rendering in an unusual way? In the example below, the <li> elements have been set to “display: inline”, and then 1em of padding has applied to all sides. Unfortunately, the padding on the top and bottom of the <li> elements seems to have been ignored causing the elements to overlap each other

Comments

Your Comment

You must be logged in to post a comment.