Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hmm</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <%#= stylesheet_link_tag 'reset' %> <%#= javascript_include_tag :defaults %> <%#= javascript_include_tag 'swfobject.js' %> <%#= javascript_include_tag 'swfhelp.js' %> <style type="text/css"> * { padding: 0; margin: 0; width: 100%; color: #fff; } html { height: 100%; } body { height: 100%; } #head { position: absolute; top: 0; left: 0; height: 200px; background-color: red; } #content { position: absolute; top: 200px; left:0; background-color: yellow; height: 100%; padding-top: -200px; padding-bottom: -100px; } #foot { position: absolute; bottom: 0; left: 0; height: 100px; background-color: blue; } #box { height: 100%; background-color: green; } </style> </head> <body id="body"> <div id="container"> <div id="head"> HEADER </div> <div id="content"> <div id="box">Box Content</div> <%#= swf_tag(@flek.vid, "fmaker", "100%x100%", { }, false, false, "#ababab" ) %> </div> <div id="foot"> Footer </div> </div> </body> </html>
This paste will be private.
From the Design Piracy series on my blog: