SitePoint
Reference
CSS
Box Properties
Dimensions
width
CSS Live Demo: width
(this page)
See also:
All Live Demos
CSS Live Demo: width
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
#example p { width:100px; } p { font-size:20px; border:1px solid #696; background:#dfd; color:#030; float:left; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<div id="example"> <p>All I can ever be to you, is a darkness that we knew, and this regret I've got accustomed to. Once it was so right, when we were at our high, waiting for you in the hotel at night.</p> </div>
Show me!
Your results appear here: