Inline elements and padding :
“Have you ever tried to add padding toelements that have been set to ‘display: inline’? Did you find that the padding seemed to be rendering in an unusual way? … To understand why this is happening, we need to look at the different ways that block level and inline elements treat properties such as width, height, padding and margins.” For example, the W3C states that the width, height properties do not apply to inline, non-replaced elements, but line-heightdoes apply to the height of the box. Read Russ Weakley’s presentation to understand more of what does and doesn’t apply and how you can achieve the results you need for your inline list navigation or other inline elements. Fabulous presentation that explains things in an easy-to-understand way.
Turning a list into a navigation bar :

COMMENTS
No Comments