SitePoint
Reference
CSS
Box Properties
Dimensions
max-height
CSS Live Demo: max-height
(this page)
See also:
All Live Demos
CSS Live Demo: max-height
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
#example p { max-height:100px; } p { font-size:40px; border:1px solid #969; background:#fdf; color:#303; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<div id="example"> <p>And I think it's gonna be a long long time, till touch-down brings me round again to find, I'm not the man they think I am at home.</p> </div>
Show me!
Your results appear here: