<?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>Interactive Llama :: Interactive media tutorials and tips &#187; HTML and CSS</title>
	<atom:link href="http://www.interactivellama.com/blog/archives/tag/html-and-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.interactivellama.com/blog</link>
	<description>Interactive media tutorials and tips</description>
	<lastBuildDate>Wed, 23 Nov 2011 15:25:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Change media and images to full size in WordPress media gallery</title>
		<link>http://www.interactivellama.com/blog/archives/change-media-and-images-to-full-size-in-wordpress-media-gallery/</link>
		<comments>http://www.interactivellama.com/blog/archives/change-media-and-images-to-full-size-in-wordpress-media-gallery/#comments</comments>
		<pubDate>Thu, 22 May 2008 00:15:09 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image width]]></category>
		<category><![CDATA[maximum image size]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plug_in]]></category>
		<category><![CDATA[Rachel Steely]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Workflow]]></category>

		<guid isPermaLink="false">/blog/?p=122</guid>
		<description><![CDATA[I&#8217;ve been familiarizing myself with WordPress 2.5&#8242;s new media gallery. If you&#8217;ve visited my blog before, you know I don&#8217;t upload many images, but I&#8217;m hoping to upload many images to my wife, Rachel Steely&#8217;s website. I was annoyed to find out that the default image posting size is medium (which is about 300px). On [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been familiarizing myself with WordPress 2.5&#8242;s new media gallery. If you&#8217;ve visited my blog before, you know I don&#8217;t upload many images, but I&#8217;m hoping to upload many images to my wife, <a href="http://www.rachelsteely.com">Rachel Steely&#8217;s website</a>. I was annoyed to find out that the default image posting size is medium (which is about 300px). On top of that, if you select full size, it doesn&#8217;t mean full size. It means your WordPress theme&#8217;s column width. So unless you are using Kubrick your media size will not be your column width.<span id="more-122"></span></p>
<p><strong>Change Full Size image width to match theme</strong></p>
<p>The column width in WordPress&#8217;s default theme Kubrick is 500px. Therefore, the default (maximum) image size is 500px. The column width of the blog I am posting to is 614px. You can set a global variable to change this setting. Create if not already existing functions.php in your theme directory. Define your maximum media width (that is &#8220;Full Size&#8221; in the Gallery interface):<br />
<code><br />
&lt;?php<br />
$content_width = 614;<br />
?&gt;</code></p>
<p>I&#8217;ve set mine to 614 pixels since that is the width of my div with the class  &#8220;.entry&#8221; minus padding. If this does not work, some have solved this problem with $GLOBALS['content_width'] = 614; also. You can view this setting at a post at <a href="http://www.rachelsteely.com/blog/photos-from-wheeler-spring-open-house/">RachelSteely.com</a>.</p>
<p><strong>Default media to Full Size</strong></p>
<p>I prefer to justify my media (align left and right) to the column width. To do this, set default selected size to &#8220;Full Size&#8221; by changing the code in /wp-admin/includes/media.php. Move the &#8216;checked&#8217; radio attribute from Medium to Full Size.</p>
<p>Line 458:<br />
<code><br />
" : '' ) . "&lt;input type='radio' name='attachments[$post-&gt;ID][image-size]' id='image-size-medium-$post-&gt;ID' value='medium' checked='checked' /&gt;<br />
&lt;label for='image-size-medium-$post-&gt;ID'&gt;" . __('Medium') . "&lt;/label&gt;<br />
&lt;input type='radio' name='attachments[$post-&gt;ID][image-size]' id='image-size-full-$post-&gt;ID' value='full' /&gt;<br />
</code></p>
<p>change to<br />
<code><br />
" : '' ) . "&lt;input type='radio' name='attachments[$post-&gt;ID][image-size]' id='image-size-medium-$post-&gt;ID' value='medium' /&gt;<br />
&lt;label for='image-size-medium-$post-&gt;ID'&gt;" . __('Medium') . "&lt;/label&gt;<br />
&lt;input type='radio' name='attachments[$post-&gt;ID][image-size]' id='image-size-full-$post-&gt;ID' value='full' checked='checked' /&gt;</code></p>
<p>And that&#8217;s it! Happy uploading with the new and improved (and customized) WordPress media gallery.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/change-media-and-images-to-full-size-in-wordpress-media-gallery/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Plain text link to HTML with a PHP function and regular expressions</title>
		<link>http://www.interactivellama.com/blog/archives/plain-text-link-to-html-with-a-php-function-and-regular-expressions/</link>
		<comments>http://www.interactivellama.com/blog/archives/plain-text-link-to-html-with-a-php-function-and-regular-expressions/#comments</comments>
		<pubDate>Wed, 07 May 2008 20:21:21 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">/blog/archives/plain-text-link-to-html-with-a-php-function-and-regular-expressions/</guid>
		<description><![CDATA[If you have ever wanted to turn a plain text link, http://www.smjdesign.com, into a "linked" HTML version, http://www.smjdesign.com, you can now. Pass the following function your entire text field and it will find all your links and return tagged HTML. function replace_plain_text_link($plain_text) { $url_html = preg_replace( '/(?&#60;!S)((http(s?):\/\/)&#124;(www.))+([\w.1-9\&#38;=#?\-~%;\/]+)/', '&#60;a href="http$3://$4$5"&#62;http$3://$4$5&#60;/a&#62;', $plain_text); return ($url_html); } echo replace_plain_text_link("hi [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever wanted to turn a plain text link, http://www.smjdesign.com, into a "linked" HTML version, <a href="http://www.smjdesign.com">http://www.smjdesign.com</a>, you can now. Pass the following function your entire text field and it will find all your links and return tagged HTML.</p>
<pre><code>function replace_plain_text_link($plain_text) {
$url_html = preg_replace(
'/(?&lt;!S)((http(s?):\/\/)|(www.))+([\w.1-9\&amp;=#?\-~%;\/]+)/',
'&lt;a href="http$3://$4$5"&gt;http$3://$4$5&lt;/a&gt;', $plain_text);
return ($url_html);
}
echo replace_plain_text_link("hi this is dummy text before
http://www.smjdesign.com hi this is dummy text after")
</code></pre>
<p><span id="more-121"></span></p>
<p>The majority of the above regular expression was not created by me. I however cannot locate the original programmer. It was posted on a message board I visited along with ftp and mailto options. If you can help, please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/plain-text-link-to-html-with-a-php-function-and-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Graphic web design and cascading style sheets</title>
		<link>http://www.interactivellama.com/blog/archives/graphic-web-design-and-cascading-style-sheets/</link>
		<comments>http://www.interactivellama.com/blog/archives/graphic-web-design-and-cascading-style-sheets/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 21:46:48 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[Graphic Design]]></category>
		<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Productivity & Workflow]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox_extensions]]></category>
		<category><![CDATA[internet_explorer]]></category>
		<category><![CDATA[style sheet]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">/blog/archives/graphic-web-design-and-cascading-style-sheets/</guid>
		<description><![CDATA[On Saturday, February 9 at 11:30 am, I spoke at BarcampIndy 2008 on Graphic Web Design and Cascading Style Sheets. All presentations were broadcast on BlipTV. You can view a video of this presentation on BlipTV. The premise of my presentation was to show an overview of the process between layout in Illustrator and PhotoShop [...]]]></description>
			<content:encoded><![CDATA[<p>On Saturday, February 9 at 11:30 am, I spoke at <a href="http://barcamp.org/barcampindy">BarcampIndy 2008</a> on Graphic Web Design and Cascading Style Sheets. All presentations were broadcast on BlipTV. You can view a <a href="http://blip.tv/file/658349">video of this presentation on BlipTV</a>.</p>
<p>The premise of my presentation was to show an overview of the process between layout in Illustrator and PhotoShop to coding in HTML and CSS. I find that web design is often segmented between the coders and graphic designers. I propose that the best outcome can come from bridging that gap. I do this in my daily workplace and try to show tips and techniques for others to bridge that gap. The time slot was only a half hour, so I could not go into coding detail, but only point to tutorials via links.<span id="more-118"></span></p>
<p>You can view the <a href="http://www.smjdesign.com/public/presentations/barcampindy2008/graphic_web_design-and-css-smjdesign.ppt">Graphic Web Design and Cascading Style Sheets PowerPoint</a> (431KB) or view the <a href="http://www.smjdesign.com/public/presentations/barcampindy2008/graphic_web_design-and-css-smjdesign.htm">presentation in HTML</a>. Some <a href="http://www.smjdesign.com/public/presentations/barcampindy2008/support-images/">support images</a> and <a href="http://del.icio.us/smjdesign/barcampindy2008">all sites discussed can be found on Delicious</a> (theses are notated by &#8220;{link}&#8221; within the presentation).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/graphic-web-design-and-cascading-style-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

