<?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>codegumbo &#187; CSS</title>
	<atom:link href="http://codegumbo.com/index.php/category/development/code/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://codegumbo.com</link>
	<description>Laissez Les Bon Code Roulez!</description>
	<lastBuildDate>Tue, 07 Sep 2010 14:06:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>CSS, max-height</title>
		<link>http://codegumbo.com/index.php/2008/12/16/css-max-height/</link>
		<comments>http://codegumbo.com/index.php/2008/12/16/css-max-height/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 02:57:50 +0000</pubDate>
		<dc:creator>stuart</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://codegumbo.com/?p=129</guid>
		<description><![CDATA[I wish I had something of substance to add today, but I&#8217;ve been overwhelmed by personal stuff.  My oldest daughter has been sick with strep for the last week, so I&#8217;ve been having to rearrange a lot of my schedule so I can hang out with her when needed.  Consequently, I&#8217;m just wiped in the [...]]]></description>
			<content:encoded><![CDATA[<p>I wish I had something of substance to add today, but I&#8217;ve been overwhelmed by personal stuff.  My oldest daughter has been sick with strep for the last week, so I&#8217;ve been having to rearrange a lot of my schedule so I can hang out with her when needed.  Consequently, I&#8217;m just wiped in the evenings. </p>
<p>Anyway, you may have noticed that I&#8217;ve been playing around with my website, especially with my new blogroll page.  I&#8221;ve been adding some blogs to it using RSS feeds, and one thing has become clear: different RSS feeds behave differently when asked to return an item.  For example, some blog postings auto truncate themselves after a few phrases; for example, Brent Ozar:</p>
<div style="border:1px solid green;padding:3px;background-color:#EFF2B9;">
<h4><a href="http://BrentOzar.com" target="_blank">Brent Ozar</a></h4>
<div style="overflow:hidden;"><p><b><a href="http://www.brentozar.com/archive/2010/09/come-see-me-at-sqlbits/" target="_blank">Register for SQLBits in England – Space Running Out!</a></b> <i> - Mon, 06 Sep 2010</i><br>If you deal with VMware, Hyper-V, SANs, and SQL Server, come check out my pre-conference session at SQLBits in York, England on Thursday, September 30th.  My all-day session is called, &#8220;Virtualization, SAN, and SQL Server: The Perfect Storm.&#8221; This will be a fun, intimate session &#8211; it&#8217;s limited to 40 people max, and we&#8217;ve got [...]</p></div>
</div>
<p>Contrast this with Andy Warren&#8217;s feed:</p>
<div style="border:1px solid green;padding:3px;background-color:#EFF2B9;">
<h4><a href="http://www.sqlservercentral.com/blogs/andy_warren/default.aspx" target="_blank">It Depends (Andy Warren)</a></h4>
<div style="overflow:hidden;"><p><b><a href="http://feedproxy.google.com/~r/itdepends/~3/kot07_J17aI/sqlrally-meeting-minutes.aspx" target="_blank">SQLRally Meeting Minutes</a></b> <i> - Thu, 09 Sep 2010</i><br><p>The starting point for a good meeting is an agenda and minutes. It took us a bit to catch up, but the minutes of our planning meetings so far are now available thanks to some work from PASS HQ, you can see them at <a title="http://www.sqlpass.org/Events/PASSSQLRally.aspx" href="http://www.sqlpass.org/Events/PASSSQLRally.aspx">http://www.sqlpass.org/Events/PASSSQLRally.aspx</a>. I hope you’ll read them. I know minute aren’t page turners! </p>
<p>As I read them and think about all the discussion, it’s interesting how there are so many small discussions to be had and so many small decisions to be made. At a high level I think the formula is simple and direct, and now we just do all the things we can think of to make it work. In some ways I wish I could ask <em>all of you</em> on a lot of these, but that just doesn’t scale. Instead, we’ll share the minutes along with supplemental posts, and ask for your input on things that <em>I think</em> you’re most interested in or consider to be fun; picking the logo, pre-con process, and speaker selection.</p>
<p>Anyway, read the minutes.</p>
<img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=29950" width="1" height="1"><img src="http://feeds.feedburner.com/~r/itdepends/~4/kot07_J17aI" height="1" width="1"/></p></div>
</div>
<p>Now, while I like reading Andy&#8217;s stuff, I don&#8217;t necessarily want a bunch of lengthy articles on my blogroll page; I tried to figure out a way to limit the amount of text returned, when I tripped across this nifty CSS property: max-height. From <a href="http://www.devguru.com/technologies/css2/8110.asp" target="_blank">DevGuru</a>: The max-height property is used to set the maximum height of an element. Other properties can be used to set the height, width, maximum width, minimum height and the minimum width. This property is not inherited. (note that Devguru also specifies that this property is not currently supported by any browser; it works in IE7. Go figure).</p>
<p>Anyway, I simply add the max-height to my div container wrapped around the feedsnap plugin, and suddenly the RSS feed truncates after a certain pixel height.</p>
<p>&lt;div style=&#8221;overflow:hidden;max-height:100px&#8221;&gt;&lt;/div&gt;</p>
<div style="border:1px solid green;padding:3px;background-color:#EFF2B9;">
<h4><a href="http://www.sqlservercentral.com/blogs/andy_warren/default.aspx" target="_blank">It Depends (Andy Warren)</a></h4>
<div style="overflow:hidden;max-height:100px"><p><b><a href="http://feedproxy.google.com/~r/itdepends/~3/kot07_J17aI/sqlrally-meeting-minutes.aspx" target="_blank">SQLRally Meeting Minutes</a></b> <i> - Thu, 09 Sep 2010</i><br><p>The starting point for a good meeting is an agenda and minutes. It took us a bit to catch up, but the minutes of our planning meetings so far are now available thanks to some work from PASS HQ, you can see them at <a title="http://www.sqlpass.org/Events/PASSSQLRally.aspx" href="http://www.sqlpass.org/Events/PASSSQLRally.aspx">http://www.sqlpass.org/Events/PASSSQLRally.aspx</a>. I hope you’ll read them. I know minute aren’t page turners! </p>
<p>As I read them and think about all the discussion, it’s interesting how there are so many small discussions to be had and so many small decisions to be made. At a high level I think the formula is simple and direct, and now we just do all the things we can think of to make it work. In some ways I wish I could ask <em>all of you</em> on a lot of these, but that just doesn’t scale. Instead, we’ll share the minutes along with supplemental posts, and ask for your input on things that <em>I think</em> you’re most interested in or consider to be fun; picking the logo, pre-con process, and speaker selection.</p>
<p>Anyway, read the minutes.</p>
<img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=29950" width="1" height="1"><img src="http://feeds.feedburner.com/~r/itdepends/~4/kot07_J17aI" height="1" width="1"/></p></div>
<p> </p></div>
<p>Anyway, I hope this puts some ideas in your head.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=CSS%2C+max-height+http://6bc9n.th8.us" title="Post to Twitter"><img class="nothumb" src="http://codegumbo.com/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=CSS%2C+max-height+http://6bc9n.th8.us" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://codegumbo.com/index.php/2008/12/16/css-max-height/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
