<?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>Fri, 03 Feb 2012 00:43:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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://feedproxy.google.com/~r/BrentOzar-SqlServerDba/~3/37scXteFRF0/" target="_blank">Join Me for Lunch in Chicago on March 23rd</a></b> <i> - Wed, 01 Feb 2012</i><br>On March 23rd, I&#8217;ll be the guest of honor at the first SQLFriends Lunch in Chicago.  For just $30, you get lunch at Buca di Beppo on Rush Street plus two hours of talking about SQL, virtualization, blogging, consulting, the MCM program, you name it. And you really do name it &#8211; on the SQLFriends...<p>...<br /><i>Upcoming free webcasts: <a href="https://brentozarevents.webex.com/brentozarevents/onstage/g.php?t=a&d=667522160">SQL Server Certifications</a>, <a href="https://brentozarevents.webex.com/brentozarevents/onstage/g.php?t=a&d=669342631">DBA Darwin Awards Index Edition</a>, and <a href="https://brentozarevents.webex.com/brentozarevents/onstage/g.php?t=a&d=664876357">Anatomy of the SQL Server Log File</a></i>.</p>
</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/Equ-DnY9I5Q/now-to-end-of-year.aspx" target="_blank">Now to End of Year</a></b> <i> - Fri, 02 Dec 2011</i><br><p>My friend <a href="http://stevejonesssc.blogspot.com/">Steve Jones</a> posted <a href="http://www.sqlservercentral.com/blogs/steve_jones/archive/2011/11/17/shutting-down-for-a-week.aspx">Shutting Down for a Week</a> and in that he talked about doing too much, trying to find balance. I’m right there with him, I’ve been slowly finishing up commitments and shedding tasks to get down to what is right now about a 45 hour week, with a single day trip remaining this year and no travel projected for January.</p>
<p>I’m starting to think about next year. How much do I want to travel? What are my new goals? I haven’t been able to get as much done as I wanted this year. I got a lot done, but not as much as I wanted. Trying to do too much, or not trying hard enough? Both? I’ve got a few ideas I think are worth effort, but I’m trying harder to quantify the effort. Building something new is exhilarating, but draining too if you do it on top of a normal job.</p>
<p>Mostly though I’m going to do things that aren’t work or career related. Catch up some stuff around the house, build a thing or two, do some extra reading, and when I’m ready I’ll make some decisions about the next phase. </p>
<p></p>
<img src="http://feeds.feedburner.com/~r/Sqlandy/~4/L6E1zDqbDGY" height="1" width="1"/><img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=38851" width="1" height="1"><img src="http://feeds.feedburner.com/~r/itdepends/~4/Equ-DnY9I5Q" 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/Equ-DnY9I5Q/now-to-end-of-year.aspx" target="_blank">Now to End of Year</a></b> <i> - Fri, 02 Dec 2011</i><br><p>My friend <a href="http://stevejonesssc.blogspot.com/">Steve Jones</a> posted <a href="http://www.sqlservercentral.com/blogs/steve_jones/archive/2011/11/17/shutting-down-for-a-week.aspx">Shutting Down for a Week</a> and in that he talked about doing too much, trying to find balance. I’m right there with him, I’ve been slowly finishing up commitments and shedding tasks to get down to what is right now about a 45 hour week, with a single day trip remaining this year and no travel projected for January.</p>
<p>I’m starting to think about next year. How much do I want to travel? What are my new goals? I haven’t been able to get as much done as I wanted this year. I got a lot done, but not as much as I wanted. Trying to do too much, or not trying hard enough? Both? I’ve got a few ideas I think are worth effort, but I’m trying harder to quantify the effort. Building something new is exhilarating, but draining too if you do it on top of a normal job.</p>
<p>Mostly though I’m going to do things that aren’t work or career related. Catch up some stuff around the house, build a thing or two, do some extra reading, and when I’m ready I’ll make some decisions about the next phase. </p>
<p></p>
<img src="http://feeds.feedburner.com/~r/Sqlandy/~4/L6E1zDqbDGY" height="1" width="1"/><img src="http://www.sqlservercentral.com/blogs/aggbug.aspx?PostID=38851" width="1" height="1"><img src="http://feeds.feedburner.com/~r/itdepends/~4/Equ-DnY9I5Q" height="1" width="1"/></p></div>
<p> </p></div>
<p>Anyway, I hope this puts some ideas in your head.</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>

