<?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>dwcourse.com &#187; Tip of the Day</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/category/tip-of-the-day/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dwcourse.com</link>
	<description>Adobe Dreamweaver Tips, Tricks and Tutorials</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:26:57 +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>Deleting the font (and other) tags from existing pages</title>
		<link>http://www.dwcourse.com/dreamweaver/deleting-html-tags.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/deleting-html-tags.php#comments</comments>
		<pubDate>Sun, 13 Jun 2010 15:18:52 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[Tip of the Day]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=1270</guid>
		<description><![CDATA[Last year I wrote that it is still possible (although not recommended) to use the deprecated &#60;font&#62; tag in Dreamweaver CS4. I recently got an email in response to that post asking how to remove the font tag from existing, older documents using CS4. The writer noted that it was relatively easy in CS3 &#8220;all [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Last year I wrote that it is still possible (although not recommended) to <a href="http://dwcourse.com/dreamweaver/font-tag-dreamweaver-cs4.php">use the deprecated &lt;font&gt; tag in Dreamweaver CS4</a>. I recently got an email in response to that post asking how to <strong>remove</strong> the font tag from existing, older documents using CS4.</p>
<p>The writer noted that it was relatively easy in CS3 <em>&#8220;all you have to do is highlight the block of text you want to edit and  select &#8220;default&#8221; in the font selector box  and &#8220;none&#8221; in font size and instantly the code is removed.&#8221;</em></p>
<p>The good news is it&#8217;s also very easy in CS4. All you need to do is right+click the offending &lt;font&gt; (or other) tag in the Status Bar at the bottom of the Document Window and select Remove Tag from the pop-up menu.</p>
<p>Viola, no &lt;font&gt; tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/deleting-html-tags.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linking to a specific item on a page</title>
		<link>http://www.dwcourse.com/dreamweaver/link-to-specific-point-on-page.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/link-to-specific-point-on-page.php#comments</comments>
		<pubDate>Tue, 26 Jan 2010 03:03:00 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=798</guid>
		<description><![CDATA[When you&#8217;ve been creating web pages as long as I have, it&#8217;s easy to start thinking you&#8217;re hot stuff. Then along comes some perfectly obvious little html shortcut that you&#8217;ve been overlooking for a decade. It tends to humble you pretty quickly! And judging by the response at the DreamweaverClub.com forum, I wasn&#8217;t the only [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When you&#8217;ve been creating web pages as long as I have, it&#8217;s easy to start thinking you&#8217;re hot stuff. Then along comes some perfectly obvious little html shortcut that you&#8217;ve been overlooking for a decade. It tends to humble you pretty quickly!</p>
<p>And judging by the response at the <a href="http://www.dreamweaverclub.com/forum/">DreamweaverClub.com forum</a>, I wasn&#8217;t the only one surprised by this one. So I thought I&#8217;d share it with you.</p>
<p>As you know, when you link to a page using a normal link (such as &lt;<strong>a href=&#8221;http://www.dwcourse.com&#8221;&gt;DWcourse&lt;/a&gt;</strong>) the link takes you to the top of the page. And, as many of you no-doubt also know, you can also insert an empty, non-link Anchor Tag (such as <strong>&lt;a name=&#8221;item&#8221; id=&#8221;item&#8221;&gt;&lt;/a&gt;</strong>) into your page and then link directly to the location of the Named Anchor within the page like this &lt;<strong>a href=&#8221;http://www.dwcourse.com#item&#8221;&gt;Link directly to item on DWcourse page&lt;/a&gt;</strong>. T<em>o insert a named anchor in Dreamweaver select <strong>menu: Insert&gt;Named Anchor</strong>.</em></p>
<p>Now here&#8217;s the obvious html fact that that I&#8217;d been overlooking. You don&#8217;t have to insert a named anchor into your page to link to a specific point within the page. <strong>You can link directly to any named object within your page. </strong>For instance, if you want to link to particular sub-sections of your page, each of which begins with an level 2 heading &lt;h2&gt; you can give each h2 a unique ID and link directly to it. <em>In Dreamweaver you can assign an ID to an html object by selecting the object and typing the ID into the ID field in the Properties Inspector.</em></p>
<p>So, if your page looks like this:</p>
<blockquote><p>&lt;h1&gt;Main Headline&lt;/h1&gt;<br />
&lt;h2 id=&#8221;section1&#8243;&gt;section 1 &lt;/h2&gt;<br />
content for section 1<br />
&lt;h2 id=&#8221;section2&#8243;&gt;section 2 &lt;/h2&gt;<br />
content for section 2<br />
&lt;h2 id=&#8221;section3&#8243;&gt;section 3 &lt;/h2&gt;<br />
content for section 3</p></blockquote>
<p>You can link directly to section 2 from within the current page like this: <strong>&lt;a href=&#8221;#section2&#8243;&gt;Section 2&lt;/a&gt;</strong> or from another website like this: <strong>&lt;a href=&#8221;http://www.dwcourse.com#section2&#8243;&gt;DWcourse Section 2&lt;/a&gt;</strong>. No need to clutter up your code with an empty Named Anchor!</p>
<p>And, to point out the (now) obvious, the # (number sign) within a link refers to a named html object within the page, just as a # within a CSS selector refers to a named object.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/link-to-specific-point-on-page.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stopping Untitled Documents Take 2</title>
		<link>http://www.dwcourse.com/dreamweaver/stop-untitled-documents-2.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/stop-untitled-documents-2.php#comments</comments>
		<pubDate>Wed, 09 Dec 2009 21:12:56 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[Tip of the Day]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=773</guid>
		<description><![CDATA[I feel a bit stupid. In my recent Stop “Untitled Document” in Dreamweaver post I reported what I thought was a very clever way to find pages titled &#8220;Untitled Document&#8221; using Dreamweaver&#8217;s search function. It turns out there&#8217;s a built-in function that will will do the job: Select menu: Site&#62;Reports… In the reports dialog: Leave Current [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I feel a bit stupid. In my recent <span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.2em; margin-left: 0px; outline-width: 0px; outline-style: initial; outline-color: initial; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; display: block; background-position: initial initial; background-repeat: initial initial; padding: 0px; border: 0px initial initial;"><a href="Stop “Untitled Document” in Dreamweaver">Stop “Untitled Document” in Dreamweaver</a> post </span>I reported what I thought was a very clever way to find pages titled &#8220;Untitled Document&#8221; using Dreamweaver&#8217;s search function. It turns out there&#8217;s a built-in function that will will do the job:</p>
<ol>
<li>Select menu: Site&gt;Reports…</li>
<li>In the reports dialog:
<ol>
<li>Leave Current Local Site selected in the Report On menu.</li>
<li>In the Select Reports area of the dialog, check the Untitled Documents under HTML Reports.</li>
<li>Click the Run button.</li>
</ol>
</li>
</ol>
<p>The Results palette will open and all documents with the title &#8220;Untitled Document&#8221; will be listed in the Site Reports tab.</p>
<p>In my defense, my earlier method gives you the ability to scan the titles of all your documents, which can be pretty handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/stop-untitled-documents-2.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Browser Window and Bring to Front</title>
		<link>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php#comments</comments>
		<pubDate>Thu, 23 Jul 2009 18:33:29 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[behaviors]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[open browser window]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=346</guid>
		<description><![CDATA[One Dreamweaver feature that been around for a while is the Open Browser Window (OBW for short) behavior. Described simply, the behavior is a JavaScript that opens a page in a new window while at the same time specifying the size, attributes (scrollbars, resize handles. etc.) and name of the window. Once a window is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One Dreamweaver feature that been around for a while is the Open Browser Window (OBW for short) behavior. Described simply, the behavior is a JavaScript that  opens a page in a new window while at the same time specifying the size, attributes (scrollbars, resize handles. etc.) and name of the  window. Once a window is created and named in this manner it can be targeted by additional instances of the OBW behavior or even regular links.</p>
<p>The problem is that &#8211; <strong>in Explorer and Firefox</strong> &#8211; when you target a preexisting window with the OBW behavior, the new page opens  but the targeted window does not come to the front (technically, the targeted window does not gain focus). That means that your new page opens but the user doesn&#8217;t see it because it&#8217;s hidden. Probably not the solution you were looking for.<span id="more-346"></span></p>
<p><script type="text/javascript">// <![CDATA[
 function DWC_openBrWindow(theURL,winName,features) { 
newwindow=window.open(theURL,winName,features); 
if (window.focus) {newwindow.focus()} 
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// ]]&gt;</script></p>
<p>Here&#8217;s an example created using DW&#8217;s built-in OBW behavior. If you&#8217;re using Explorer of Firefox (Safari users don&#8217;t have this problem), click on the first link below and a new window &#8211; which I&#8217;m naming &#8220;popup&#8221; &#8211; will open. Make sure that &#8220;popup is positioned over this window, leave it open, return to this page and click on the second link.</p>
<p align="center"><a onclick="MM_openBrWindow('/test-pages/page1.html','popup','width=200,height=200');return false;" href="#">Open Page 1</a> then come back and <a onclick="MM_openBrWindow('/test-pages/page2.html','popup','width=200,height=200');return false;" href="#">Open Page 2</a><a href="#"></a></p>
<p>The second link opens a new page in the existing &#8220;popup&#8217; window but you won&#8217;t see it because it&#8217;s hidden behind this window. To verify that the new page opened, minimize (<strong>But don&#8217;t close!</strong>) this window. I&#8217;d hate to lose you just when things are getting interesting! Once you&#8217;re curiosity is satisfied, leave the pop-up window open and maximize this window.</p>
<p>What you&#8217;d really like to happen is what happens when you click on the link below.</p>
<p align="center"><a onclick="DWC_openBrWindow('/test-pages/page3.html','popup','width=200,height=200');return false;" href="#">Open Page 3</a></p>
<p>Notice that the new page opens in the existing &#8220;popup&#8221; window AND the window comes to the front. Fortunately, all it takes to work this magic is the substitution of a few lines of code in the JavaScript function  <strong>MM_openBrWindow</strong> that Dreamweaver creates to handle the OBW behavior. Here&#8217;s all you need to do:</p>
<ol>
<li>In Dreamweaver, using the Behaviors palette,  attach the OPB behavior to an object in your page.</li>
<li>Switch to either the Code or Split view.</li>
<li>Near the top of the code of your page, somewhere between the opening head and closing head tags (&lt;head&gt; and &lt;/head&gt; respectively) locate the following three lines of code which define the <strong>MM_openBrWindow</strong> function:<br />
<code>function MM_openBrWindow(theURL,winName,features) { //v2.0<br />
window.open(theURL,winName,features);<br />
}</code></li>
<li>Copy the code below  and use it to replace the code you located in step 3 above.<br />
<code>function MM_openBrWindow(theURL,winName,features) {<br />
newwindow=window.open(theURL,winName,features);<br />
if (window.focus) {newwindow.focus()}<br />
}</code></li>
<li>That&#8217;s it! Now whenever you use the Open Browser Window Behavior in your page you can rest assured the window will pop to the front and be visible. Just remember, since DW inserts the JavaScript in the page (and that&#8217;s where we customized it), you&#8217;ll need to make this change on every page where you use the OBW behavior.</li>
</ol>
<p><em><strong>Note:</strong> When using the <strong>links relative to site root</strong> option, this customized script will fail  using DW&#8217;s Preview in Browser feature. However it will function properly when uploaded to your web server. Using <strong>links relative to document</strong> avoids the problem all together.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/open-browser-window-in-front.php/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FireFox and the Webdings font</title>
		<link>http://www.dwcourse.com/dreamweaver/firefox-webdings.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/firefox-webdings.php#comments</comments>
		<pubDate>Mon, 13 Jul 2009 14:50:53 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[Webdings]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=339</guid>
		<description><![CDATA[I recently receved this question from John via email: You stated that Webdings were part of the Microsoft Core set of fonts that are pretty safe to use for web design….Pat had been saying for awhile that her hearts were not working on her website … and I would go and check and they were [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I recently receved this question from John via email:</p>
<blockquote><p>You stated that Webdings were part of the Microsoft Core set of fonts that are pretty safe to use for web design….Pat had been saying for awhile that her hearts were not working on her website … and I would go and check and they were fine. When you mentioned the other day about viewing sites in different browsers,  I opened in FireFox and there was the problem. It turns her webding hearts into Y’s…</p>
<p>I am going to have to remove them … would you agree?</p></blockquote>
<p>John, thanks for pointing this issue out. Since I don&#8217;t normally use Webdings, I hadn&#8217;t been aware of it.</p>
<p>Beginning with version 3, FireFox has made changes to the way it displays font characters that essentially break the Webdings font. There are valid reasons for doing this (there&#8217;s a <a href="You stated that Webdings were part of the Microsoft Core set of fonts that are pretty safe to use for web design….Pat had been saying for awhile that her hearts were not working on her website over and over and I would go and check and they were fine….When you mentioned the other day about viewing sites in different browsers,  I opened in Mozilla and there was the problem. It turns her webding hearts into Y’s…   I am going to have to remove them or make them a unique piece of art similar to the headlines for her site, would you agree?" target="_blank">discussion here…</a>) but so far, those reasons haven&#8217;t convinced any of the other major browser makers (where Webdings continues to work).</p>
<p>The bottom line is this. Webdings is a dozen years old and encoded in a way that doesn&#8217;t play well with emerging web standards. Given that fact it&#8217;s unlikely that FireFox will change its ways and return to supporting WebDings. It&#8217;s also likely that other browsers will also eventually &#8220;break&#8221; Webdings. So, if you&#8217;ve been using the font in your web pages, it&#8217;s probably time to come up with another solution.</p>
<p>Since Webdings is essentially a graphic font the simplest solution is &#8211; as John suggests &#8211; to instances where you&#8217;ve used the font with images (and don&#8217;t forget to include a descriptive alt tag).</p>
<p>It&#8217;s just another case of evolving web technologies and standards rendering our &#8220;old&#8221; ways of doing things obsolete (think replacing HTML attributes with CSS styles and tables with divs) and it won&#8217;t be the last!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/firefox-webdings.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering Lost Site Definitions</title>
		<link>http://www.dwcourse.com/dreamweaver/recovering-lost-site-definitions.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/recovering-lost-site-definitions.php#comments</comments>
		<pubDate>Mon, 06 Jul 2009 18:55:18 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[define site]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=321</guid>
		<description><![CDATA[My iMac recently froze up and, when I – eventually – recovered from the forced shut down and restart, I discovered my Dreamweaver preferences had been reset to the default settings and, even worse, ALL 50 OF MY SITE DEFINITIONS HAD DISAPPEARED! I have my site definitions backed up (most of them anyway) but the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>My iMac recently froze up and, when I – eventually – recovered from the forced shut down and restart, I discovered my Dreamweaver preferences had been reset to the default settings and, even worse,</p>
<p style="text-align: center; "><strong>ALL 50 OF MY SITE DEFINITIONS HAD DISAPPEARED!</strong></p>
<p><strong><span style="font-weight: normal; ">I have my site definitions backed up (most of them anyway) but the option of importing them one by one didn’t really appeal to me. Besides, I have Time Machine installed so I reasoned that, if I could figured out where Dreamweaver stores its site definitions, I could restore them all from the backup.</span></strong></p>
<p>Well, it took a bit of research but I was able to make it work. Should you wind up in the same situation, here’s how to do it.</p>
<p><em>Sorry but these instructions are Mac OS X and Dreamweaver CS3 and CS4 only, if anyone can figure out how to do the same on a PC or for other versions of Dreamweaver, I’m sure a lot of folks would like to know about it.</em></p>
<p>Dreamweaver CS4 Mac stores site definitions in the file:</p>
<p style="padding-left: 30px; ">Macintosh HD:Users:&lt;username&gt;:Library:Application Support:Adobe:Common:10:Sites:Site Prefs</p>
<p style="padding-left: 30px; ">For CS3 the file is: Macintosh HD:Users:&lt;username&gt;:Library:Application Support:Adobe:Common:9:Sites:Site Prefs</p>
<p><em>Substitute your user name for &lt;username&gt; and, if you have renamed your computer’s hard drive, sub your drive’s name for Macintosh HD. The colons separate folder names.</em></p>
<p>Using Time Machine, restoring the site definitions was a simple matter of selecting the file, activating Time Machine, scrolling back a day or two and selecting Restore to replace the current (empty) Site Prefs file with the previous version.</p>
<p><strong>Note:</strong> Make sure that you have Dreamweaver closed when you restore the <em>Site Prefs</em> file or the restored file will end up empty as well.</p>
<p>As I said, I also lost my customizations to Dreamweaver’s preferences. I was able to restore them in the same way. Dreamweaver’s preference settings are stored in the file:</p>
<p style="padding-left: 30px;">Macintosh HD:Users:&lt;username&gt;:Library:Preferences:Adobe Dreamweaver CS4 Prefs</p>
<p style="padding-left: 30px;"><em>Of course, it’s Dreamweaver </em>CS3 Prefs<em> for users of Dreamweaver CS3.</em></p>
<p>If you don’t have Time Machine installed, you can also replace the <em>Site Prefs</em> and <em>Dreamweaver CS4 Prefs</em> files using a recent back up (you do have a recent back up don’t you?).</p>
<p>And, if you haven’t found yourself in this situation, be thankful and consider making a backup of your <em>Site Prefs</em> and <em>Dreamweaver CS4 Prefs</em> files and storing them somewhere handy.</p>
<p><em>As always, feel free to </em><a style="color: #2361a1; text-decoration: underline; padding: 0px; margin: 0px;" href="mailto:%20jcook@DWcourse.com"><em>email me</em></a><em> with your questions, comments and suggestions. And please follow me on Twitter (</em><a style="color: #2361a1; text-decoration: underline; padding: 0px; margin: 0px;" href="http://twitter.com/dwcourse"><em>DWcourse</em></a><em>) for additional Dreamweaver news and tips.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/recovering-lost-site-definitions.php/feed</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Centering a Page Layout</title>
		<link>http://www.dwcourse.com/dreamweaver/centering-page-layout.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/centering-page-layout.php#comments</comments>
		<pubDate>Thu, 18 Jun 2009 19:15:35 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Page Design]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS postitioning]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=315</guid>
		<description><![CDATA[Update: The directions here have been updated to accomodate absolutely positioned divs. Thanks to Dianne Lewandowski for pointing out the issue. I thought I&#8217;d expand a bit on my answer to a question from Brandon85 on Twitter. He asked: Why is this so hard!! How do you Center a website in the browser using Dreamweaver? Actually, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><strong>Update:</strong> The directions here have been updated to accomodate absolutely positioned divs. Thanks to Dianne Lewandowski for pointing out the issue.</p>
<p>I thought I&#8217;d expand a bit on my answer to a question from <a title="Brandon" href="http://twitter.com/Brandon85" target="_blank">Brandon85</a> on Twitter. He asked:</p>
<blockquote><p><span><span id="msgtxt2222785130">Why is this so hard!! How do you Center a website in the browser using Dreamweaver?</span></span></p></blockquote>
<p><span><span>Actually, it&#8217;s relatively easy (if you know how).<span id="more-315"></span></span></span></p>
<ol>
<li>Begin by selecting your entire page in Design View.</li>
<li>Select menu: Insert&gt;Layout Objects&gt;Div Tag (or click on Insert Div Tag in the Common tab of the Insert Palette).</li>
<li>In the Insert Div Tag dialog:
<ol>
<li>Select Wrap Around Selection (your entire design) from the Insert menu.</li>
<li>Leave the Class field empty</li>
<li>Type &#8220;wrapper&#8221; (without the quotes) into the ID field (this is assuming you don&#8217;t already have an item with the ID &#8220;wrapper.&#8221;</li>
<li>Click the New CSS Rule button.</li>
</ol>
</li>
<li>In the New CSS rule dialog
<ol>
<li>ID should already be selected in the Selector Type menu.</li>
<li>#wrapper should have been automatically inserted into the Selector Name field.</li>
<li>Decide whether the new style should be in the current document or a new or existing style sheet and make your selection in the Rule Definition menu .</li>
<li>Click the OK button.</li>
</ol>
</li>
<li>In the CSS Rule Definition dialog:
<ol>
<li>Select the Box category.
<ol>
<li>Type in a Width. By default the horizontal width of a div is 100% so you need to set a width for the wrapper div to properly center it. Logically this should be the width (most likely in pixels) of your page design.</li>
<li>Uncheck the Same for All option under Margin.</li>
<li>Set the Right margin to auto by selecting auto in the pop-up menu to the right of the Right field.</li>
<li>Set the Left margin to auto using the same method.</li>
</ol>
</li>
<li>Select the Block category
<ol>
<li>Select left from the Text-Align menu (I&#8217;ll tell you why in a moment).</li>
</ol>
</li>
<li>Select the Positioning category
<ol>
<li>Select relative from the Position menu. This forces any absolutely positioned divs in your page to align relative to the &#8220;wrapper&#8221; div rather than the browser window. See <a href="http://dwcourse.com/css-div-positioning">CSS positioning</a> for more information on positioning.</li>
</ol>
</li>
<li>Click OK</li>
</ol>
</li>
</ol>
<p>Your design should now be centered but we still have one step to go.</p>
<p><strong><em>Correction: </em></strong><em>The following work-around was originally mislabeled. It is intended for IE5 compatibility (and can probably be ignored by most folks)</em></p>
<p><strong>Work-Around for Internet Explorer 5</strong>: If desired, we&#8217;ll need an additional fix to make this IE5 friendly.</p>
<ol>
<li>Set the text-align property of the body style to center (This will center your page layout in IE5)
<ol>
<li>If you already have a body style, double click on it in the Styles Palette to open the CSS Style Definition dialog.</li>
<li>If you don&#8217;t have a body style, create a new one:
<ol>
<li> Choose menu: Format&gt;CSS Styles&gt;New… (or select New… from the pop-up menu in the upper-right corner of the Styles Palette) <strong>OR</strong></li>
<li>In the New CSS Rule dialog:
<ol>
<li>Choose Tag from the Selector Type menu.</li>
<li>Type &#8220;body&#8221; into the Selector Name field.</li>
<li>Decide whether the new style should be in the current document or a new or existing style sheet and make your selection in the Rule Definition menu .</li>
<li>Click the OK button to open the CSS Style Definition dialog.</li>
</ol>
</li>
</ol>
</li>
<li>In the CSS Style Definition dialog:
<ol>
<li>Select the Box category.</li>
<li>Select center from the Text-Align menu.</li>
<li>Click OK</li>
</ol>
</li>
</ol>
</li>
</ol>
<p><strong>That explanation I promised</strong>: Setting the text-align property in the body style to center centers your page design but, since styles are inherited in CSS, it also centers all the text on your page. By setting text-align for #wrapper to left, we effectively overrule the centering for all page elements inside of #wrapper (which should be all of the page elements).</p>
<p>Funny how much a 140 character answer on Twitter can grow once it&#8217;s a blog post!</p>
<p><em>As always, feel free to </em><a style="color: #2361a1; text-decoration: underline; padding: 0px; margin: 0px;" href="mailto:%20jcook@DWcourse.com"><em>email me</em></a><em> with your questions, comments and suggestions. And please follow me on Twitter (</em><a style="color: #2361a1; text-decoration: underline; padding: 0px; margin: 0px;" href="http://twitter.com/dwcourse"><em>DWcourse</em></a><em>) for additional Dreamweaver news and tips.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/centering-page-layout.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Site Won&#8217;t Update</title>
		<link>http://www.dwcourse.com/dreamweaver/site-wont-update.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/site-wont-update.php#comments</comments>
		<pubDate>Thu, 18 Jun 2009 16:00:06 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[define site]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=307</guid>
		<description><![CDATA[Another problem often experienced by Dreamweaver noobies is: I&#8217;ve updated my site in Dreamweaver and it looks fine when I preview it but after I upload it the changes don&#8217;t show up on the site. Let&#8217;s eliminate the easiest solution first. Did you refresh your browser window? When you view a page on the web, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Another problem often experienced by Dreamweaver noobies is:</p>
<blockquote><p>I&#8217;ve updated my site in Dreamweaver and it looks fine when I preview it but after I upload it the changes don&#8217;t show up on the site.</p></blockquote>
<ol>
<li>Let&#8217;s eliminate the easiest solution first. Did you refresh your browser window? When you view a page on the web, your browser stores a copy of that page (and it&#8217;s dependent files) in it&#8217;s cache. Then, if you return to the page, your browser shows you the cached version rather than the &#8220;live&#8221; version. This speeds up  browsing but also might prevent you from viewing the latest version of your page. Refreshing the browser window by clicking the Refresh button in your browser should guarantee  you&#8217;re looking at the current version of the page.</li>
<li>Another possibility &#8211; if you are viewing the home page of your site through a URL such as www.yourdomain.com &#8211; is that you have multiple index files. As you should be aware, servers are set up to display a default page for a directory if no file name is specified in the URL. The default file is usually index.htm, index.html, index.php or something similar. The server can even be configured (and often is) so that any of those file names can be used for the default file. A problem arises when more than one of the possible default files is present.Say, for instance, a file index.htm pre-exists on your server and, when you create your new site, you use index.html (note the &#8220;l&#8221;) as your default file name. When you upload your site the existing index.htm file will not be overwritten. So when you visit www.yourdomain.com you may continue to see the old index.htm and not your new home page, index.html.The solution is relatively simple, delete the index.htm file on the server OR change your default file to index.htm (remove the &#8220;l&#8221;) so that when it uploads it will replace the exiting home page.</li>
<li>Another possibility is that you have defined your Host Directory incorrectly in your Remote Site definition. If this is the case, when you upload your files they are placed in the wrong directory on the server. So you won&#8217;t see the new pages when you visit the site with your browser. More information on defining your site is available in my tutorial, <a href="http://www.dreamweaverclub.com/define-your-site.php" target="_blank">Define Your Site</a> at the <a href="http://www.dreamweaverclub.com/forum/" target="_blank">Dreamweaver Club forum</a> or in my <a href="../dreamweaver-mini-course">Let&#8217;s Get Started with Dreamweaver</a> mini-course.</li>
</ol>
<p><em>As always, feel free to <a href="mailto:%20jcook@DWcourse.com">email me</a> with your questions, comments and suggestions. And please follow me on Twitter (<a href="http://twitter.com/dwcourse">DWcourse</a>) for additional Dreamweaver news and tips.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/site-wont-update.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Borders on Spry Menus</title>
		<link>http://www.dwcourse.com/dreamweaver/spry-menus-borders.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/spry-menus-borders.php#comments</comments>
		<pubDate>Wed, 27 May 2009 14:20:02 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[spry menus]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=299</guid>
		<description><![CDATA[Chris Tordesillas recently asked via the contact form how to: …make a simple horizontal spry menu where the sections are divided by a neat 1 pixel border all around.  My problem is when I place the border on the &#8220;ul.MenuBarHorizontal a&#8221; selector it places a 1 pixel border around each cell.  The end result is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Chris Tordesillas recently asked via the contact form how to:</p>
<blockquote><p>…make a simple horizontal spry menu where the sections are divided by a neat 1 pixel border all around.  My problem is when I place the border on the &#8220;ul.MenuBarHorizontal a&#8221; selector it places a 1 pixel border around each cell.  The end result is the border between 2 cells ends up becoming 2 pixels.</p>
<p>I just want a simple 1 pixel border in between my &#8220;buttons&#8221;</p></blockquote>
<p>There are probably many ways to accomplish this but the one that occurs to me is to wrap three sides of the ul.MenuBarHorizontal a selector with a border:</p>
<p>border-top: 1px solid #F00;<br />
border-right: 1px solid #F00;<br />
border-bottom: 1px solid #F00;</p>
<p>And then create a special class style to provide the missing left border for the first &#8220;cell&#8221;:</p>
<p>.leftBorder {<br />
border-left: 1px solid #F00;<br />
}</p>
<p>You&#8217;ll then need to apply the class to the proper link &lt;a&gt; tag:</p>
<p>&lt;li&gt;&lt;a class=&#8221;leftBorder&#8221; href=&#8221;#&#8221;&gt;Item 1&lt;/a&gt;</p>
<p>As I said, there are probably other solutions. If you have one, please feel free to leave it in the comments below.</p>
<p><em>And, as always, feel free to <a href="mailto:%20jcook@DWcourse.com">email me</a> with your questions, comments and suggestions. And please follow me on Twitter (<a href="http://twitter.com/dwcourse">DWcourse</a>) for additional Dreamweaver news and tips.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/spry-menus-borders.php/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dreamweaver Workspaces</title>
		<link>http://www.dwcourse.com/dreamweaver/workspaces.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/workspaces.php#comments</comments>
		<pubDate>Mon, 18 May 2009 22:45:47 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver User Interface]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[panels]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[user interface]]></category>
		<category><![CDATA[workspace]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=296</guid>
		<description><![CDATA[As Dreamweaver has matured it&#8217;s become more than a tool for designers looking for a WSIWYG web tool. It&#8217;s become a serious web development tool and is even getting the attention of (gasp!) hard core coders. In recognition of this trend, Adobe has added several new preset workspaces to Dreamweaver. The workspaces, which are accessed [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>As Dreamweaver has matured it&#8217;s become more than a tool for designers looking for a WSIWYG web tool. It&#8217;s become a serious web development tool and is even getting the attention of (gasp!) hard core coders.</p>
<p>In recognition of this trend, Adobe has added several new preset workspaces to Dreamweaver. The workspaces, which are accessed from the Window&gt;Workspace Layout menu item, include:</p>
<ul>
<li>App Developer</li>
<li>App Developer Plus</li>
<li>Classic</li>
<li>Coder</li>
<li>Coder Plus</li>
<li>Designer</li>
<li>Designer Compact</li>
<li>Dual Screen</li>
</ul>
<p>As the names imply, the workspaces are  designed to accommodate the needs of different users in different computing environments. So, if you&#8217;re not happy with the default setup, try one of these options.</p>
<p>If you still aren&#8217;t happy, you can always open and close windows and move and resize palettes until you are. When you quit Dreamweaver it will remember your workspace. In other words, if you start with the Designer workspace, change it and then quit, your changes will be integrated into the default Designer workspace which you can access at anytime by selecting Window&gt;Workspace&gt;Designer.</p>
<p>To remove your changes and return the Designer workspace to its original settings choose Window&gt;Workspace&gt;Reset &#8220;Designer.&#8221;</p>
<p>You can also arrange the workspace as you like it and save it as a custom workspace by choosing Window&gt;Workspace&gt;New Workspace… That way you&#8217;ll have access to the new workspace as well as all the built-in defaults.</p>
<p>Finally you can delete or rename the custom workspaces you create by choosing Window&gt;Workspace&gt;Manage Workspaces…</p>
<p><em>As always, feel free to comment here or <a href="mailto: jcook@DWcourse.com">email me</a> with your questions, comments and suggestions. And please follow me on Twitter (<a href="http://twitter.com/dwcourse">DWcourse</a>) for additional Dreamweaver news and tips.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/workspaces.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
