<?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>Musings of a code slave &#187; CSS</title>
	<atom:link href="http://foundationphp.com/blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://foundationphp.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 04 Aug 2010 17:40:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>New extension to convert colours to RGBA</title>
		<link>http://foundationphp.com/blog/2010/04/30/new-extension-to-convert-colours-to-rgba/</link>
		<comments>http://foundationphp.com/blog/2010/04/30/new-extension-to-convert-colours-to-rgba/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 14:05:44 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=136</guid>
		<description><![CDATA[CSS3 offers a new way to define colours: RGBA. This extends the RGB (red, green, blue) colour model to include alpha transparency. Unfortunately, RGBA does not accept hexadecimal values for colours. So, I have created a free Dreamweaver extension that &#8230; <a href="http://foundationphp.com/blog/2010/04/30/new-extension-to-convert-colours-to-rgba/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>CSS3 offers a new way to define colours: RGBA. This extends the RGB (red, green, blue) colour model to include alpha transparency. Unfortunately, RGBA does not accept hexadecimal values for colours. So, I have created a free Dreamweaver extension that converts from hexadecimal (or the 17 named colours) to RGBA. It&#8217;s free, and can be downloaded from <a href="/tools/">the Tools page on this site</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2010/04/30/new-extension-to-convert-colours-to-rgba/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dreamweaver CS5 is good news for PHP devs</title>
		<link>http://foundationphp.com/blog/2010/04/12/dreamweaver-cs5-is-good-news-for-php-devs/</link>
		<comments>http://foundationphp.com/blog/2010/04/12/dreamweaver-cs5-is-good-news-for-php-devs/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 09:10:32 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=122</guid>
		<description><![CDATA[So, Adobe has finally released details of Creative Suite 5, and you’ll be able to get your hands on it at the end of this month. As the author of a forthcoming book on Dreamweaver (Adobe Dreamweaver CS5 with PHP: &#8230; <a href="http://foundationphp.com/blog/2010/04/12/dreamweaver-cs5-is-good-news-for-php-devs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Book cover" src="/images/blog/DWPHP.jpg" alt="Book cover" width="108" height="132" />So, Adobe has finally released details of <a href="http://www.adobe.com/products/creativesuite/">Creative Suite 5</a>, and you’ll be able to get your hands on it at the end of this month. As the author of a forthcoming book on Dreamweaver (<a title="See a detailed description of the book" href="/phpcs5/"><em>Adobe Dreamweaver CS5 with PHP: Training from the Source</em></a>), I’ve had the opportunity to explore the <a href="http://www.adobe.com/products/dreamweaver/">new features of Dreamweaver CS5</a> for some time. Here are my thoughts.</p>
<p>When CS4 was released 18 months ago, I described it as the “most significant release of Dreamweaver since Dreamweaver MX ”. To my mind, Dreamweaver CS5 just blows CS4 out of the water. Before I explain why, let me address the negatives. At least three groups of people are going to be disappointed by this new release:</p>
<ul>
<li>Early adopters of HTML5 and CSS3—support is close to zero.</li>
<li>Developers of dynamic sites hoping for new server behaviors—there aren’t any.</li>
<li>Former users of GoLive—Dreamweaver CS5 hasn’t incorporated any features from GL.</li>
</ul>
<p>With the debate that has been raging over Apple’s decision to ban Flash from the iPad and iPhone in the name of HTML5 and “web standards”, many will be stunned to learn that the only concession to HTML5 in Dreamweaver CS5 is the option to use an HTML5 <code>DOCTYPE</code>. There’s also no support for CSS3. Has Adobe missed the boat on this? In publicity terms, maybe. In reality, I don’t think so.<span id="more-122"></span></p>
<p>HTML5 and CSS3 are still evolving. The current web standards are still HTML 4.01, XHTML 1.0, and CSS2.1. Moreover, Dreamweaver is extensible. Rick Curran has already created <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;extid=1986525">an extension for CSS3 code hints</a>. You can also add HTML5 tags to Dreamweaver through the Tag Library. No doubt someone will come up with an extension for that, too. In my view, it would have been a mistake for Adobe to release a half-baked implementation of incomplete standards that are still not supported on all browsers in widespread use.</p>
<p>The other decision that’s likely to cause controversy is the lack of new server behaviors. In fact, some have been removed: CS5 has continued the process of weeding out support for less popular (at least among Dreamweaver users) server-side technologies. JSP and ASP.NET were dropped in CS4. Now, ASP JavaScript has gone, too, although ASP VBScript still survives. There are a few minor security improvements and bug fixes to the PHP server behaviors, but nothing new.</p>
<p>The basic design of the server behaviors is now eight years old, so many people had been asking for new, improved ones, particularly after the decision to drop Adobe Dreamweaver Developer Toolbox (ADDT) last year. Few people realized the significance of that move. This is only my personal opinion, but I think Adobe was sending a clear signal that it’s not in the business of creating server behaviors to automate the generation of server-side code. It’s leaving that market to extension developers like <a href="http://www.webassist.com/">WebAssist</a>, <a href="http://www.cartweaver.com/">CartWeaver</a>, <a href="http://www.dmxzone.com/">DMXZone</a>, and others.</p>
<p>So, what is it about Dreamweaver CS5 that I like so much? Lots!</p>
<p>One of the biggest improvements is that Live View now works like a browser. “What’s new about that?” you might think. The difference is that in CS5, the links work. Hold down Ctrl/Cmd while clicking a link, and the target page loads into the Dreamweaver Document window—even if it’s a live page on the internet (assuming, of course, that you’re connected). The Related Files toolbar gives you direct access to the code of all pages linked to the new page. If the target page is on a remote site, the code is read-only; but on a local site, you can edit the code, and press F5 to see the results in Live View. If you want to keep the changes, there’s a new option on the File menu to Save All Related Files.</p>
<p>If you’re still wondering why this is an improvement, just try it with a content management system (CMS) like <a href="http://wordpress.org/">WordPress</a>, <a href="http://drupal.org/">Drupal</a>, or <a href="http://www.joomla.org/">Joomla!</a> As long as you have set up a testing server, you can now view a CMS in Live View. Not only that, Dreamweaver CS5 lets you interact directly with a database. You can test online forms in Live View, inserting database records, updating, and deleting them. Dreamweaver CS5 eliminates the need to make constant round trips to a browser for testing, because the browser is right there in the Document window.</p>
<p><img class="alignleft" title="Working with a database in Dreamweaver Live View" src="/images/blog/db_liveview.jpg" alt="User registration form in DW Live View" width="686" height="527" /></p>
<p>Of course, you still need to test pages in a variety of browsers, but you can launch <a href="https://browserlab.adobe.com/">BrowserLab </a>directly from Dreamweaver to test your pages in Adobe’s online service. Up to now, BrowserLab has been free, but it’s being turned into a paid-for service. Your purchase of Dreamweaver CS5 or one of the suites gives you continued free access to BrowserLab and InContext Editing for another year. <ins datetime="2010-04-12T17:08:03+00:00">[Update] Adobe announced today that development of InContext Editing is being terminated. You will be able to maintain existing sites, but the service will cease to exist as a standalone service in 2011. For more details, <a href="http://www.adobe.com/products/incontextediting/faq/">see the InContext Editing FAQ</a>.</ins></p>
<p>The related files feature now searches for dynamically related files, in addition to those directly linked to the current page. This gives users of WordPress and other CMSs access to the style sheets, which you can edit in Split view or through the CSS Styles panel, seeing the results immediately right inside Dreamweaver. You can even navigate to inside pages of a CMS to style them. And to make it easier to work with CSS, Live View has a CSS Inspect button that highlights block-level elements, padding, and margins in the same way as Firebug—all within the Document window. Another Firebug-like feature is the ability to disable a style rule temporarily by clicking next to the property name in the CSS Styles panel.</p>
<p style="text-align: center;"><img class="alignleft" title="Editing WordPress in Live View" src="/images/blog/wp_in_live_view.jpg" alt="WordPress in Dreamweaver CS5" width="600" height="293" /></p>
<p>As a PHP developer, it’s the changes in Code view that really excite me. When you start typing a PHP script in Dreamweaver CS5, you’ll immediately notice a red marker in the line numbers column and an alert about a syntax error.</p>
<p><img class="aligncenter" title="PHP syntax checking in Dreamweaver" src="/images/blog/syntax_check.jpg" alt="Syntax error alert" width="438" height="54" /></p>
<p>Complete the line without errors, and the marker and warning disappear. Dreamweaver constantly checks your syntax on the fly. It doesn’t tell you what the errors are, but it highlights all lines with errors, making the debugging process much quicker. PHP code hints have also been improved dramatically. There’s full support for all core functions, constants, and classes (as of PHP 5.2).</p>
<p><img class="aligncenter" title="Code hints for PHP DateTime class" src="/images/blog/class_hint.jpg" alt="PHP class code hinting" width="423" height="325" /></p>
<p>Code hinting is also much smarter. Instead of needing to search through code hints alphabetically, Dreamweaver CS5 searches for substrings. This is helpful when you can’t remember the exact name of function or class—just type the part of the name that you remember, and Dreamweaver includes it in the list. You can also work out your own shortcuts. For example, if you press Ctrl+spacebar and type <strong>gesi</strong>, the code hints take you straight to <code>getimagesize()</code> by recognizing the <strong>ge </strong>of “image” and the <strong>si </strong>of “size”. And in case you don’t know how a function or class works, the official manual page—complete with code examples—appears as a tooltip at the bottom of the selected code hint.</p>
<p><img class="aligncenter" title="PHP code hint shortcut and documenation in DW CS5" src="/images/blog/codehints.jpg" alt="Dreamweaver CS5 code hints for PHP" width="525" height="288" /></p>
<p>Incidentally, the smart nature of code hints also applies to style sheets. If, like me, you constantly pick <code>widows</code> instead of <code>width</code>, just type <strong>dt</strong>—it takes you straight to <code>width</code>.</p>
<p>For serious PHP developers, it gets even better. Dreamweaver CS5 is capable of code introspection, so it builds code hints on the fly for your own functions and classes, as well as for third-party libraries, such as the Zend Framework.</p>
<p><img class="alignleft" title="Generating code hints for Zend Framework" src="/images/blog/zend_class.jpg" alt="Zend Framework hints" width="594" height="167" /></p>
<p>The definition files don’t even need to be directly attached to the page you’re working in. With Site-Specific Code Hints, you tell Dreamweaver where your library files are located, and it scans them for you automatically.</p>
<p><img class="aligncenter" title="Setting up site-specific code hints in Dreamweaver CS5" src="/images/blog/zendhints.jpg" alt="Dialog box" width="600" height="412" /></p>
<p>My feeling is that Adobe made the right decisions. HTML5 and CSS3 are not ready for prime time; and server behaviors can offer only a limited number of options if they’re to remain manageable. Site-Specific Code Hints and the improvements to Live View open up a vast new range of opportunities to the beginner and more experienced PHP developer alike. I liked Dreamweaver CS4 a lot, but CS5 is a huge improvement.</p>
<p>Of course, Adobe can’t stop there. CS6 will need to offer solid support for HTML5 and CSS3, but by that time the specification should have settled down and browsers should have caught up.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2010/04/12/dreamweaver-cs5-is-good-news-for-php-devs/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>Getting StartED with CSS now available</title>
		<link>http://foundationphp.com/blog/2009/11/28/getting-started-with-css-now-available/</link>
		<comments>http://foundationphp.com/blog/2009/11/28/getting-started-with-css-now-available/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 19:17:28 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=113</guid>
		<description><![CDATA[My latest book, Getting StartED with CSS, has been published, and is already in stock at Amazon.com. &#8220;Who needs yet another book on CSS?&#8221; you may ask. The reason I wrote it is because I felt the process of learning &#8230; <a href="http://foundationphp.com/blog/2009/11/28/getting-started-with-css-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>My latest book, <a title="Visit the book's companion website" href="http://gettingstartedwithcss.com/"><em>Getting StartED with CSS</em></a>, has been published, and is already in stock at <a title="Go to the book's page on Amazon" href="http://www.amazon.com/gp/product/1430225432?ie=UTF8&amp;tag=japaninterfac-20">Amazon.com</a>. &#8220;Who needs yet another book on CSS?&#8221; you may ask. The reason I wrote it is because I felt the process of learning CSS was made too hard by the books that I used to learn it. Let&#8217;s face it. Learning CSS can be an uphill struggle. It&#8217;s not because the basic syntax is difficult. In fact, it&#8217;s quite easy. The main problem lies in the infinite number of ways you can combine properties and selectors to achieve the effect you want. Another big problem has been the inconsistency in the way browsers have rendered CSS.</p>
<p>This second problem is finally becoming less acute, thanks to the release of Internet Explorer 8 in March this year. IE8 supports the whole of CSS2.1, and its accurate rendering of CSS puts it on a level with other standards-compliant browsers, such as Firefox, Safari, and Opera. <em>Getting StartED with CSS</em> was written after the release of IE8, so it&#8217;s bang up to date; and it concentrates on CSS as rendered by modern browsers, rather than getting bogged down in details of hacks to persuade older browsers to behave. However, since the bane of web designers&#8217; lives, IE6, is likely to be around for some time to come, the book does offer advice on how to deal with the most common bugs in IE6.</p>
<p>Where I hope my book stands out from others is in the way it avoids throwing a whole load of theory at your before you can achieve anything practical with CSS. Instead of forcing you to wade through a detailed explanation of classes and other selectors before you start using CSS, I show you how to achieve practical results with the most basic selector of all, <a title="Definition of type selectors on the book's companion site" href="http://gettingstartedwithcss.com/selectors/basic.php#type">the type (or tag) selector</a>, which redefines the default look of HTML tags. I don&#8217;t get into classes until Chapter 4 (of 12).</p>
<p>Another difference is the way I approach the box model, an understanding of which is essential to working with CSS. Instead of bamboozling you with a whole pile of theory, I devote a whole chapter to showing how margins are used to create space between elements and lay them out. The following chapter builds on this by discussing how to add backgrounds and borders. Finally, a third chapter brings the whole box model together by adding padding, width, and height into the mix. My aim is that by introducing each aspect of the box model gradually, you build up a better understanding of how it all fits together. By the of the twelfth chapter, you have studied all visual and print properties in CSS2.1, including some of the less well-known ones, such as generated content.</p>
<p>Perhaps my only disappointment with the book is that it&#8217;s printed in black and white. However, the plus side is that the publisher has given it a relatively inexpensive price tag, at least for a computer book. The cover price is $24.99, and many online sellers are offering it for a discount. Sadly, the price is more expensive outside the USA, but that always seems to be the case with books.</p>
<p><a href="http://gettingstartedwithcss.com/">The book&#8217;s companion website</a> contains a complete reference to all CSS2.1 visual and print properties, and selectors, together with lots of examples of the properties in action. I hope you&#8217;ll find the site useful even if you don&#8217;t buy the book. But, of course, I hope you will decide to buy. <img src='http://foundationphp.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2009/11/28/getting-started-with-css-now-available/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Customizing a Spry Menu Bar</title>
		<link>http://foundationphp.com/blog/2009/09/20/customizing-a-spry-menu-bar/</link>
		<comments>http://foundationphp.com/blog/2009/09/20/customizing-a-spry-menu-bar/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 13:25:48 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[AJAX/JavaScript]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=104</guid>
		<description><![CDATA[About a year ago, Adobe asked me if I would become a moderator for Dreamweaver Community Help. The idea was to encourage people to use the Dreamweaver online Help files more frequently on the assumption that people would be more &#8230; <a href="http://foundationphp.com/blog/2009/09/20/customizing-a-spry-menu-bar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>About a year ago, Adobe asked me if I would become a moderator for <a href="http://www.adobe.com/support/dreamweaver/">Dreamweaver Community Help</a>. The idea was to encourage people to use the <a href="http://help.adobe.com/en_US/Dreamweaver/10.0_Using/index.html">Dreamweaver online Help files</a> more frequently on the assumption that people would be more willing to do so if power users answered their questions promptly. It&#8217;s certainly worked. The problem is that some Help pages have become overwhelmed with questions. One of them is <a href="http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSEE4C0148-A6F4-4bf5-9DEF-CE06AB026214a.html">Customizing a Spry Menu Bar Widget</a>.</p>
<p>It&#8217;s obvious that people love the ability to create a menu bar in seconds, but they hate banging their head on their keyboard trying to figure out how to edit the CSS. In response, I&#8217;ve created a couple of tutorials that are now live on my site. The first one goes into considerable detail, explaining the basics of <a href="/tutorials/sprymenu/customize1.php">customizing the CSS of a Spry Menu Bar</a>, with instructions for both horizontal and vertical menu bars. The other, shorter tutorial shows <a href="/tutorials/sprymenu/centering.php">how to centre a horizontal menu bar</a>. I hope you find them useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2009/09/20/customizing-a-spry-menu-bar/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Coming soon: Getting StartED with CSS</title>
		<link>http://foundationphp.com/blog/2009/09/04/coming-soon-getting-started-with-css/</link>
		<comments>http://foundationphp.com/blog/2009/09/04/coming-soon-getting-started-with-css/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 12:26:01 +0000</pubDate>
		<dc:creator>David Powers</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://foundationphp.com/blog/?p=99</guid>
		<description><![CDATA[The chapters are written, the screenshots taken, and the copy editing has begun. . . My new book, Getting StartED with CSS, is bang on schedule to hit the bookstores in November. The book is aimed principally at beginners, but &#8230; <a href="http://foundationphp.com/blog/2009/09/04/coming-soon-getting-started-with-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The chapters are written, the screenshots taken, and the copy editing has begun. . . My new book, <em><a title="Visit the book's website" href="http://gettingstartedwithcss.com/">Getting StartED with CSS</a></em>, is bang on schedule to hit the bookstores in November. The book is aimed principally at beginners, but after a gentle start, it moves at a fairly rapid pace. So, if you&#8217;re one of those people who have dabbled, but still &#8220;don&#8217;t get CSS&#8221;, then this book is for you, as well.</p>
<p>My motive for writing the book was the release of <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Internet Explorer 8</a>, which offers full support for the whole of <a href="http://www.w3.org/TR/CSS21/">CSS2.1</a>. <span id="more-99"></span>Of course, it will take some time before older, buggy versions of Internet Explorer finally disappear. Even so, the rapid uptake of IE8 means that more than half of all people surfing the web now use a standards-compliant browser. IE8&#8242;s support for CSS2.1 is as good as <a href="http://www.mozilla.com/en-US/firefox/personal.html">Firefox</a>, <a href="http://www.apple.com/safari/">Safari</a>, <a href="http://www.google.com/chrome/intl/en/features.html">Google Chrome</a>, and <a href="http://www.opera.com/">Opera</a>. In some respects, it&#8217;s even better. If cross-browser support for CSS has been holding you back, it shouldn&#8217;t do so any longer.</p>
<p>The other thing I had in mind is that most books I have read on CSS either throw a lot of rules at you all at once, or they just concentrate on &#8220;cool&#8221; techniques. My aim was to avoid front-loading the book with a mass of rules. After outlining a few basics, I introduce new rules and concepts only as they&#8217;re needed. However, you can&#8217;t avoid rules in CSS; and by the time you reach the end of <em>Getting StartED with CSS</em>, you will have studied every visual and print property in the <a title="See the full specification on the W3C site" href="http://www.w3.org/TR/CSS21/">CSS2.1 specification</a>. The book teaches you some cool techniques, but the main emphasis is on <em>understanding</em> how CSS works by explaining how everything fits together and showing you how to use CSS analysis tools, such as <a href="http://getfirebug.com/">Firebug</a>, the Web Inspector panel in <a href="http://www.apple.com/safari/">Safari 4</a>, and the <a href="http://msdn.microsoft.com/en-us/library/dd565628%28VS.85%29.aspx">Developer Tools panel in IE8</a>.</p>
<p>Like most of my other books, it&#8217;s a mixture of reference material and hands-on exercises. There&#8217;s also a very comprehensive appendix that lists all properties with their permitted values, and references back to the chapters where you can find a full description of how to use them.</p>
]]></content:encoded>
			<wfw:commentRss>http://foundationphp.com/blog/2009/09/04/coming-soon-getting-started-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
