Inline elements and padding

CSS, JavaScript and Accessibility Workshop series 2010

Three of Australia's leading web experts, Kevin Yank, Roger Hudson and Russ Weakley in hands-on workshops designed to give you the most up-to-date knowledge and skills in CSS, JavaScript and Accessibility. Find out more

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? Inline elements and padding explains why this occurs and one method that can be used to overcome the problem.

Tags: , ,

Date: 19 November 2006
Author: Russ Weakley
Category: Articles, CSS, HTML
Tags: , , , ,

Comments so far

  1. FLOODkOFF says:

    Thank you very much for this article. It’s usefull and understandable even for people that don’t speak English well!

  2. Helen Morgan says:

    Now that’s feedback worth having. Many people can’t communicate to people who speak their own language because their writing is so fussy. Well done Russ.