<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Whose line-height is it anyway?</title>
	<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway/</link>
	<description>Comments on Ask MetaFilter post Whose line-height is it anyway?</description>
	<pubDate>Sun, 04 May 2008 07:52:23 -0800</pubDate>
	<lastBuildDate>Sun, 04 May 2008 07:52:23 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Whose line-height is it anyway?</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway</link>	
		<description>What&apos;s causing &lt;a href=&quot;http://img232.imageshack.us/img232/7025/unrulylineheightssa5.jpg&quot;&gt;these unruly line heights&lt;/a&gt; in my web page and how do I solve it? &lt;br /&gt;&lt;br /&gt; It&apos;s the site linked from my profile. Most of it is dynamic content so it changes fairly quickly; the snapshot linked above is how it renders for me right now, FF 3.0 b5, XP. It happens only occasionally, sometimes the lines are all the same height, as I want them to be.&lt;br&gt;
&lt;br&gt;
I&apos;m fairly certain I&apos;m overlooking something, but what is it? Is it an inheritance issue? Should some other value be cleared first? Is it not line-height after all but paddings and/or margins? Something else?&lt;br&gt;
&lt;br&gt;
Thanks in advance, guys.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.90489</guid>
		<pubDate>Sun, 04 May 2008 07:51:28 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
		
			<category>css</category>
		
			<category>webdesign</category>
		
			<category>web</category>
		
			<category>design</category>
		
			<category>webpage</category>
		
			<category>website</category>
		
			<category>lineheight</category>
		
			<category>line-height</category>
		
			<category>typesetting</category>
		
	</item> <item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328592</link>	
		<description>Oh, I just noticed, there&apos;s a little bit of NSFW text in that screenshot, but I&apos;m guessing it&apos;s not a big deal.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328592</guid>
		<pubDate>Sun, 04 May 2008 07:52:23 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: Gomez_in_the_South</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328625</link>	
		<description>&amp;lt;span&amp;gt; tags are not block elements. As a result you can&apos;t force their height as you can with a &amp;lt;div&amp;gt; block.  I think you may have more luck if you replace the span blocks around each news item with a div. This will give you more control over the styling and you can force the heights that you want.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328625</guid>
		<pubDate>Sun, 04 May 2008 08:29:50 -0800</pubDate>
		<dc:creator>Gomez_in_the_South</dc:creator>
	</item><item>
		<title>By: stopgap</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328628</link>	
		<description>I&apos;m guessing it&apos;s because you specified line-height in ems with a very small font size. The browser has to round the line-height to the nearest pixel, which might be different for different  line multiples. &lt;br&gt;
&lt;br&gt;
I don&apos;t think there&apos;s a great solution for this if you want to keep dynamic font sizing (as you should). Maybe use a slightly larger font size for that class.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328628</guid>
		<pubDate>Sun, 04 May 2008 08:33:22 -0800</pubDate>
		<dc:creator>stopgap</dc:creator>
	</item><item>
		<title>By: stopgap</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328630</link>	
		<description>But for the record, it&apos;s rendering fine for me in Firefox 2.0.0.14. so this could be a bug in Firefox 3.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328630</guid>
		<pubDate>Sun, 04 May 2008 08:35:56 -0800</pubDate>
		<dc:creator>stopgap</dc:creator>
	</item><item>
		<title>By: kamelhoecker</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328651</link>	
		<description>I would remove the the &amp;lt;br&amp;gt; tags and the negative margin on the div that contains the headlines. Whenever you find yourself doing these kinds of hacks, your bound to start seeing weird or inconsistent results.&lt;br&gt;
&lt;br&gt;
The page looks fine to me on FF, so it&apos;s hard to debug. I thought it might be due to the crazy long &apos;title&apos; attribute in the anchors, but maybe the problem only happens when the span.headline2 wraps two lines?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328651</guid>
		<pubDate>Sun, 04 May 2008 08:57:39 -0800</pubDate>
		<dc:creator>kamelhoecker</dc:creator>
	</item><item>
		<title>By: missmagenta</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328659</link>	
		<description>&lt;em&gt; tags are not block elements. As a result you can&apos;t force their height as you can with a  block. I think you may have more luck if you replace the span blocks around each news item with a div. This will give you more control over the styling and you can force the heights that you want.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Whether an element is inline or block doesn&apos;t affect the ability to set the line-height. If he were to change to using divs instead of spans, he would have to set them to inline to retain the same presentation - thus rendering them exactly the same as spans. &lt;br&gt;
&lt;br&gt;
Your problem is most likely because you&apos;re using a beta browser. Does it happen for you in any other browser? Have you tried setting a fixed px value for the line-height and seeing if the problem goes away?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328659</guid>
		<pubDate>Sun, 04 May 2008 09:05:50 -0800</pubDate>
		<dc:creator>missmagenta</dc:creator>
	</item><item>
		<title>By: theiconoclast31</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328768</link>	
		<description>You&apos;ve got a very similar series of links under &lt;strong&gt;The Daily Read&lt;/strong&gt;, except those links render without fault. When I took a peek at the code, I realized you didn&apos;t use any tables! What worked for me:&lt;br&gt;
&lt;br&gt;
1. Remove &lt;code&gt;&amp;lt;table&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td style=&quot;line-height: 0.8em;&quot;&amp;gt;&lt;/code&gt; and its corresponding &lt;code&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/tbody&amp;gt;&amp;lt;/table&amp;gt;&lt;/code&gt;.&lt;br&gt;
2. Remove &lt;code&gt;line-height&lt;/code&gt; from the &lt;code&gt;headline2&lt;/code&gt; class. Instead, use a single &lt;code&gt;line-height&lt;/code&gt; in the &lt;code&gt;block&lt;/code&gt; class. You use &lt;code&gt;block&lt;/code&gt; pretty often, so maybe you want to do something inline.&lt;br&gt;
&lt;br&gt;
An external stylesheet will make debugging CSS so much easier. Just sayin&apos;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328768</guid>
		<pubDate>Sun, 04 May 2008 10:51:16 -0800</pubDate>
		<dc:creator>theiconoclast31</dc:creator>
	</item><item>
		<title>By: goodnewsfortheinsane</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1328869</link>	
		<description>An absolute value didn&apos;t fix it. Neither did removing the table. The problem does seem to disappear when I dynamically increase the text size while viewing in the browser, however, if I up the text size in the code the problem is still there. The problem exists in FF 2.0 too, btw.&lt;br&gt;
&lt;br&gt;
As it only seems to affect the final entry in a given panel (I should have added that it affects the smaller entries in Daily Read, too) I added a &amp;lt;span class=&quot;headline2&quot;&amp;gt;&amp;amp;nbsp;&amp;lt;/span&amp;gt; after the last entry and that seems to have fixed it. Still don&apos;t know what caused it, though.&lt;br&gt;
&lt;br&gt;
Thanks for your input, guys!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1328869</guid>
		<pubDate>Sun, 04 May 2008 12:57:03 -0800</pubDate>
		<dc:creator>goodnewsfortheinsane</dc:creator>
	</item><item>
		<title>By: mallow005</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1329154</link>	
		<description>Set the font-size for .headline to a fixed size, such as 11px (the same size that it is rendering now). Set line-height to &quot;1&quot; (no units). This will fix your problem.&lt;br&gt;
&lt;br&gt;
Don&apos;t worry about setting absolute font-size values, modern browsers scale them the same as relative values.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1329154</guid>
		<pubDate>Sun, 04 May 2008 17:50:44 -0800</pubDate>
		<dc:creator>mallow005</dc:creator>
	</item><item>
		<title>By: mallow005</title>
		<link>http://ask.metafilter.com/90489/Whose-lineheight-is-it-anyway#1329156</link>	
		<description>Oh, sorry. The line-height rule is set in .block. Set the line-height for .block to 1.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.90489-1329156</guid>
		<pubDate>Sun, 04 May 2008 17:51:51 -0800</pubDate>
		<dc:creator>mallow005</dc:creator>
	</item>
	</channel>
</rss>
