<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nklein software &#187; CSS</title>
	<atom:link href="http://nklein.com/tags/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://nklein.com</link>
	<description>software development and consulting</description>
	<lastBuildDate>Thu, 22 Dec 2011 04:42:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Org-Mode CSS</title>
		<link>http://nklein.com/2010/05/org-mode-css/</link>
		<comments>http://nklein.com/2010/05/org-mode-css/#comments</comments>
		<pubDate>Thu, 13 May 2010 22:07:24 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[org-mode]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=1379</guid>
		<description><![CDATA[The color scheme here is a bit me-centric, but I am mostly posting it because I find the typography pleasing&#8230;. In my .emacs file, I have set up the org-export-headline-levels to two and the org-export-html-style to the following: ;;; .emacs.lisp &#40;setq org-export-html-style &#34;&#60;style type=\&#34;text/css\&#34;&#62;#&#60;:use &#34;style.css&#34;&#62;&#60;/style&#62;&#34;&#41; # style.css &#60;&#60;basic body style&#62;&#62; &#60;&#60;header style&#62;&#62; &#60;&#60;content style&#62;&#62; The [...]]]></description>
			<content:encoded><![CDATA[<p>The color scheme here is a bit me-centric, but I am mostly posting it because I find the typography pleasing&#8230;. In my <em>.emacs</em> file, I have set up the <code class="codecolorer text default"><span class="text">org-export-headline-levels</span></code> to two and the <code class="codecolorer text default"><span class="text">org-export-html-style</span></code> to the following: <a name=".emacs.lisp"></p>
<div class="codecolorer-container lisp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="lisp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">;;; .emacs.lisp</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> org-export-html-style
      <span style="color: #ff0000;">&quot;&lt;style type=<span style="color: #000099; font-weight: bold;">\&quot;</span>text/css<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;#&lt;:use &quot;</span>style<span style="color: #66cc66;">.</span>css<span style="color: #ff0000;">&quot;&gt;&lt;/style&gt;&quot;</span><span style="color: #66cc66;">&#41;</span></pre></div>
<p></a></p>
<p><a name="style.css"></p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># style<span style="color: #6666ff;">.css</span>
&lt;&lt;basic body style<span style="color: #00AA00;">&gt;&gt;</span>
&lt;&lt;header style<span style="color: #00AA00;">&gt;&gt;</span>
&lt;&lt;content style<span style="color: #00AA00;">&gt;&gt;</span></pre></div>
<p></a></p>
<p>The basic body has no margin and a pleasing (to me) khaki color. <a name="basic-body-style"></p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># basic body style
body <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#999966</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div>
<p></a></p>
<p>The headers are carefully sized to try to take up a multiple of 1.4em with a consistent bottom margin. <a name="header-style"></p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># header style
h1 <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2.0em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.9em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h2 <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2.4em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.25em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.25em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div>
<p></a></p>
<p>The main body is a pale yellow color with vertical borders. It&#8217;s got a decent font (the one that I have by default for my browser) with a slight tweak to the letter spacing and a big tweak to the leading.  It keeps from getting too wide and stays centered.  Oh, and I don&#8217;t skip space before lists. <a name="content-style"></p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><pre class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># <span style="color: #000000; font-weight: bold;">content</span> style
div<span style="color: #cc00cc;">#content</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ffffcc</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span> <span style="color: #cc00cc;">#333300</span> 3mm<span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">double</span> <span style="color: #cc00cc;">#333300</span> 3mm<span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">letter-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.075em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1.4</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0em</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">45em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ul <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div>
<p></a></p>
<p>Here is some <a href="http://nklein.com/wp-content/uploads/2010/05/construction-loan.html">sample output</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2010/05/org-mode-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can We Refluidize CSS?</title>
		<link>http://nklein.com/2009/04/can-we-refluidize-css/</link>
		<comments>http://nklein.com/2009/04/can-we-refluidize-css/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 00:28:39 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[fluid design]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=153</guid>
		<description><![CDATA[I mentioned earlier that CSS makes each object responsible for how it flows in the layout rather than making the container responsible. So, what can be done? Take a look at this very site. All of the widgets on the left are floating over there. If you narrow your browser window (or bump up your [...]]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://nklein.com/2009/04/the-fluidity-thwarting-flaw-in-css/">mentioned earlier</a> that CSS makes each object responsible for how it flows in the layout rather than making the container responsible.  So, what can be done?</p>
<p>Take a look at this very <a href="http://nklein.com/">site</a>.  All of the widgets on the left are floating over there.  If you narrow your browser window (or bump up your text size), they will eventually fall into a single column.  Narrow further and they will fall below this text.</p>
<p>That&#8217;s 80% of what I wanted out them.  There are weird artifacts though caused by the different widget sizes.  To accomplish this, I not only had to float each widget, but I had to float the main column as well.</p>
<p>What I really wanted was a container that would flow things for me instead making me flow each item (poorly).  It seems I should be able to specify a container that adds objects top-to-bottom-then-left-to-right keeping the minimum needed height for any addition.  So, in adding a <em>&lt;div&gt;</em> to this container it would:</p>
<ul>
<li>insert it below the last inserted item if it need not lengthen itself to do so</li>
<li>otherwise, insert it to the right of the last items as high up as it will go if it need not widen itself to do so</li>
<li>otherwise, lengthen itself enough to place it below the rest of the contents</li>
</ul>
<p>It may be as simple as <em>preferred-width</em> and <em>-height</em> attributes on the container, a <em>flow-order: top-bottom-left-right;</em>, and judicious use of <em>maximum-width</em> and <em>-height</em>.</p>
<h3>Nobody&#8217;s Perfect</h3>
<p>This wouldn&#8217;t solve every fluidity problem one might like to tackle.  But, it would make many of them much simpler.  No one would ever switch apartments if each piece of furniture got to say where it belongs on the moving truck.</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/04/can-we-refluidize-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Fluidity-Thwarting Flaw in CSS</title>
		<link>http://nklein.com/2009/04/the-fluidity-thwarting-flaw-in-css/</link>
		<comments>http://nklein.com/2009/04/the-fluidity-thwarting-flaw-in-css/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 20:53:15 +0000</pubDate>
		<dc:creator>pat</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[fluid design]]></category>

		<guid isPermaLink="false">http://nklein.com/?p=144</guid>
		<description><![CDATA[I am the one who decides how big to make my browser window. Web sites have a hard time coming to grips with that. There is a mythical minimum browser size. When I am browsing, I don&#8217;t want to have to care. When I am designing a site, I don&#8217;t want the user to have [...]]]></description>
			<content:encoded><![CDATA[<p>I am the one who decides how big to make my browser window.  Web sites have a hard time coming to grips with that.  There is a mythical <a href="http://www.democraticunderground.com/discuss/duboard.php?az=view_all&#038;address=242x17169">minimum</a> <a href="http://www.timlinden.com/blog/traffic-exchanges/minimum-browser-size/">browser</a> <a href="http://www.coderanch.com/t/122246/HTML-JavaScript/Supporting-Different-Screen-Resolution-Sizes">size</a>.</p>
<p>When I am browsing, I don&#8217;t want to have to care.</p>
<p>When I am designing a site, I don&#8217;t want the user to have to care.</p>
<h3>CSS is my enemy</h3>
<p>All of the <a href="http://www.smashingmagazine.com/2007/05/01/css-float-theory-things-you-should-know">trouble</a> <a href="http://www.autisticcuckoo.net/archive.php?id=2004/12/10/floating">using</a> <a href="http://www.positioniseverything.net/easyclearing.html">floats</a> for columns all spring from a fundamental flaw in CSS:</p>
<blockquote><p>How items flow with CSS is a property of the object instead of its container.</p></blockquote>
<p>Now, maybe I am being a bit harsh in calling it a fundamental flaw.  For all I know, it was a conscious choice.  My guess though is that it seemed natural to people who wrote browsers in the early 90&#8242;s (<em>&lt;blink&gt;</em> tags and all).</p>
]]></content:encoded>
			<wfw:commentRss>http://nklein.com/2009/04/the-fluidity-thwarting-flaw-in-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

