SitePoint
Reference
CSS
Box Properties
Padding
padding-left
CSS Live Demo: padding-left
(this page)
See also:
All Live Demos
CSS Live Demo: padding-left
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
#example p { padding-left:20px; } p { border:4px solid orange; background:#fec; } p span { display:block; border:1px solid blue; background:#ecf; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<div id="example"> <p><span>All I want is the wind in my hair. To face the fear but not feel scared.</span></p> </div>
Show me!
Your results appear here: