<?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>TikiRobot! &#187; iChat</title>
	<atom:link href="http://www.tikirobot.net/wp/tag/ichat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tikirobot.net/wp</link>
	<description>Mai Tais and Blinky Lights, Ahoy!</description>
	<lastBuildDate>Wed, 01 Feb 2012 22:14:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Announcing ChatBubble!</title>
		<link>http://www.tikirobot.net/wp/2008/01/29/announcing-chatbubble/</link>
		<comments>http://www.tikirobot.net/wp/2008/01/29/announcing-chatbubble/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 08:57:04 +0000</pubDate>
		<dc:creator>rajbot</dc:creator>
				<category><![CDATA[ChatBubble]]></category>
		<category><![CDATA[code code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[iChat]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/2008/01/29/announcing-chatbubble/</guid>
		<description><![CDATA[I&#8217;ve finally made it easy to post good-looking iChat transcripts to the blog! We use CSS to style DIVs to look like iChat speech balloons. Cool! Where I can get the CSS? All the code is checked into SourceForge. You can browse it here. But how does it work? A brief description is here. Scott [...]]]></description>
			<content:encoded><![CDATA[<div class="CBmsg CBmsgR CBblueR">
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      I&#8217;ve finally made it easy to post good-looking iChat transcripts to the blog! We use CSS to style DIVs to look like iChat speech balloons.
    </div>
    <div class="CBb"><div></div></div>
  </div>
  <div class="CBiconR"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/rajbot.jpg"></div>
</div>
<br clear=all>

<div class="CBmsg CBmsgL CBpinkL">
  <div class="CBiconL"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/peliom.jpg"></div>
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      Cool! Where I can get the CSS?
    </div>
    <div class="CBb"><div></div></div>
  </div>
</div>
<br clear=all>

<div class="CBmsg CBmsgR CBblueR">
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      All the code is checked into SourceForge. You can browse it <a href="http://tikitasks.svn.sourceforge.net/viewvc/tikitasks/ChatBubble/">here</a>.
    </div>
    <div class="CBb"><div></div></div>
  </div>
  <div class="CBiconR"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/rajbot.jpg"></div>
</div>
<br clear=all>

<div class="CBmsg CBmsgL CBpinkL">
  <div class="CBiconL"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/peliom.jpg"></div>
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      But how does it work?
    </div>
    <div class="CBb"><div></div></div>
  </div>
</div>
<br clear=all>

<div class="CBmsg CBmsgR CBblueR">
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      A brief description is <a href="http://www.tikirobot.net/wp/2007/12/17/how-to-style-a-div-to-look-like-an-ichat-speech-balloon-using-css/">here</a>. Scott Schiller came up with the <a href="http://www.schillmania.com/projects/dialog2/">Even More Rounded Corners</a> technique that we use. There is a CSS file to include and a python script that turns transcripts into html that you can paste into a blog post. We need more documentation, CSS cleanup, cross-bowswer support, and more speech balloon colors, if you feel like contributing patches.
    </div>
    <div class="CBb"><div></div></div>
  </div>
  <div class="CBiconR"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/rajbot.jpg"></div>
</div>
<br clear=all>

<div class="CBmsg CBmsgL CBpinkL">
  <div class="CBiconL"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/peliom.jpg"></div>
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      Doesn’t WordPress completely bork the formatting in Safari by adding unmatched &lt;/p&gt; tags?
    </div>
    <div class="CBb"><div></div></div>
  </div>
</div>
<br clear=all>

<div class="CBmsg CBmsgR CBblueR">
  <div class="CBtxt">
    <div class="CBcontent">
      <div class="CBt"></div>
      Yup! WordPress is crap! You can use the <a href="http://wordpress.org/extend/plugins/wp-unformatted/">wp-unformatted</a> plugin to disable autop() on posts that contain ChatBubbles.
    </div>
    <div class="CBb"><div></div></div>
  </div>
  <div class="CBiconR"><img src="http://www.tikirobot.net/wp/wp-content/themes/gentle_calm/ChatBubble/icons/rajbot.jpg"></div>
</div>
<br clear=all>


]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2008/01/29/announcing-chatbubble/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Style a DIV to look like an iChat speech balloon using CSS</title>
		<link>http://www.tikirobot.net/wp/2007/12/17/how-to-style-a-div-to-look-like-an-ichat-speech-balloon-using-css/</link>
		<comments>http://www.tikirobot.net/wp/2007/12/17/how-to-style-a-div-to-look-like-an-ichat-speech-balloon-using-css/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 11:07:44 +0000</pubDate>
		<dc:creator>rajbot</dc:creator>
				<category><![CDATA[ChatBubble]]></category>
		<category><![CDATA[code code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[iChat]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/2007/12/17/how-to-style-a-div-to-look-like-an-ichat-speech-balloon-using-css/</guid>
		<description><![CDATA[This technique works in standards compliant browsers, such as FireFox 3 and Safari 3. You can make it work in non-standards compliant browsers if you want to, but it requires some tweaking. These instructions are simplified. When posting a chat transcript, you will want to have speech balloons originating from the left alternating with balloons [...]]]></description>
			<content:encoded><![CDATA[<p>This technique works in standards compliant browsers, such as FireFox 3 and Safari 3. You can make it work in non-standards compliant browsers if you want to, but it requires some tweaking.</p>
<p>These instructions are simplified. When posting a chat transcript, you will want to have speech balloons originating from the left alternating with balloons alternating on the right. In this example, we will only discuss the case of the balloons originating from the right. We will generalize &#8216;CBmsgR&#8217; and &#8216;CBmsgL&#8217; as just &#8216;CBmsg&#8217;.</p>
<p>1. Start with a container div with its css display property set to &#8216;table&#8217;. We will set the css class of this div to be CBmsg.</p>
<p>2. Add two table-cells to the CBmsg div. The CBmsg will contain a CBtxt and a CBicon. This will create the following layout:<br />
<img src="http://www.tikirobot.net/wp/wp-content/uploads/2007/12/p1.png" width=500 height=46 /></p>
<p>The CSS for this will look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
&nbsp;
div<span style="color: #6666ff;">.CBmsg</span> <span style="color: #00AA00;">&#123;</span>
                  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> table<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.5em</span><span style="color: #00AA00;">;</span>
                    <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
               <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
           <span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.CBtxt</span> <span style="color: #00AA00;">&#123;</span>
                  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">table-cell</span><span style="color: #00AA00;">;</span>  
                 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
                   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">min-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8em</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">max-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">760px</span><span style="color: #00AA00;">;</span>
                  <span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
              <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
           <span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.CBicon</span> <span style="color: #00AA00;">&#123;</span>
                  <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">table-cell</span><span style="color: #00AA00;">;</span> 
           <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
             <span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
            <span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>And the HTML will look this this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;CBmsg&quot;&gt;
  &lt;div class=&quot;CBtxt&quot;&gt;txt&lt;/div&gt;
  &lt;div class=&quot;CBicon&quot;&gt;icon&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>3. Add the user&#8217;s chat icon. It looks like this:<br />
<img src="http://www.tikirobot.net/wp/wp-content/uploads/2007/12/p2.png" width=499 height=50 /></p>
<p>This is what the CSS looks like. The padding property is only necessary if your blog template sets padding for all images, like ours does.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.CBicon</span> <span style="color: #00AA00;">&gt;</span> img <span style="color: #00AA00;">&#123;</span>
		  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
		    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
		   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">32px</span><span style="color: #00AA00;">;</span>
		<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>And this is the HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">  &lt;div class=&quot;CBicon&quot;&gt;&lt;img src=&quot;IconRajbot.jpg&quot;&gt;&lt;/div&gt;</pre></div></div>

<p>4. OK, now comes the complicated part. We use the <a href="http://www.schillmania.com/projects/dialog2/">Even More Rounded Corners</a> technique to draw a bubble. We use a 800&#215;1600 png that looks like an empty iChat bubble. Here is what it looks like:</p>
<p><img src="http://www.tikirobot.net/wp/wp-content/uploads/2007/12/p4.png" width=500 height=45 /></p>
<p>We copy the &#8216;content&#8217;, &#8216;t&#8217;, and &#8216;b&#8217; CSS classes from <a href="http://www.schillmania.com/projects/dialog2/">Even More Rounded Corners</a> verbatim:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.CBtxt</span> .CBcontent<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.CBtxt</span> .CBt<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.CBtxt</span> .CBb<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBb</span> div <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">background</span><span style="color: #3333ff;">:<span style="color: #993333;">transparent</span> </span>url<span style="color: #00AA00;">&#40;</span>BubbleBlueR800x1600.png<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBcontent</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
 zoom<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
 _overflow-y<span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">12px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBt</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #808080; font-style: italic;">/* top+left vertical slice */</span>
 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* top slice width */</span>
 <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-12px</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
 _height<span style="color: #00AA00;">:</span><span style="color: #933;">1600px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* arbitrary long height, IE 6 */</span>
 <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #3333ff;">:<span style="color: #000000; font-weight: bold;">top</span> </span>left<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBb</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #808080; font-style: italic;">/* bottom */</span>
 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> .CBb<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBb</span> div <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* height of bottom cap/shade */</span>
 <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBb</span> <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #3333ff;">:<span style="color: #000000; font-weight: bold;">bottom</span> </span>right<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.CBtxt</span> <span style="color: #6666ff;">.CBb</span> div <span style="color: #00AA00;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* bottom corner width */</span>
 <span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">-12px</span><span style="color: #00AA00;">;</span>
 <span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #3333ff;">:<span style="color: #000000; font-weight: bold;">bottom</span> </span>left<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#91;</span>/pre<span style="color: #00AA00;">&#93;</span>
&nbsp;
And the HTML now looks like this<span style="color: #00AA00;">:</span>
&lt;pre lang<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;html&quot;</span><span style="color: #00AA00;">&gt;</span>
&lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBmsg&quot;</span><span style="color: #00AA00;">&gt;</span>
  &lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBtxt&quot;</span><span style="color: #00AA00;">&gt;</span>
    &lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBcontent&quot;</span><span style="color: #00AA00;">&gt;</span>
      &lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBt&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
      txt
    &lt;/div<span style="color: #00AA00;">&gt;</span>
    &lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBb&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;div<span style="color: #00AA00;">&gt;</span>&lt;/div<span style="color: #00AA00;">&gt;</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
  &lt;/div<span style="color: #00AA00;">&gt;</span>
  &lt;div class<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;CBicon&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;img src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;IconRajbot.jpg&quot;</span><span style="color: #00AA00;">&gt;</span>&lt;/div<span style="color: #00AA00;">&gt;</span>
&lt;/div<span style="color: #00AA00;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2007/12/17/how-to-style-a-div-to-look-like-an-ichat-speech-balloon-using-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

