<?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; css</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/tag/css/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>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 Images/Style Sheets/Javascript Are Broken</title>
		<link>http://www.dwcourse.com/dreamweaver/images-css-broken.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/images-css-broken.php#comments</comments>
		<pubDate>Wed, 17 Jun 2009 18:25:28 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=305</guid>
		<description><![CDATA[I frequently get questions like this: My site works fine on my computer but when I upload it the [fill in the blank] are broken. My first response is one I use to address of lot of issues: Make sure your site is properly defined. It&#8217;s critical enough that I wrote a tutorial, Define Your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I frequently get questions like this:</p>
<blockquote><p>My site works fine on my computer but when I upload it the [fill in the blank] are broken.</p></blockquote>
<p>My first response is one I use to address of lot of issues: Make sure your site is properly defined. It&#8217;s critical enough that I wrote a tutorial, <a href="http://www.dreamweaverclub.com/define-your-site.php" target="_blank">Define Your Site</a>, for the <a href="http://www.dreamweaverclub.com/forum/" target="_blank">Dreamweaver Club forum</a> and also included the information in my <a href="http://dwcourse.com/dreamweaver-mini-course">Let&#8217;s Get Started with Dreamweaver</a> mini-course.</p>
<p>Once that&#8217;s out of the way the next thing to do is take a look at the source code of your page and see if any of the links are hard-coded to point to a file on your local computer. If they are, they will point to URLs that look something like this: file:///C/site/test.html. There are a few ways this might happen:</p>
<ul>
<li>Your site is defined incorrectly (but we&#8217;ve already addressed that)</li>
<li>You try to link to a file outside your root folder (and don&#8217;t let Dreamweaver move it for you when it asks)</li>
<li>You copy code from a file that hasn&#8217;t yet been saved (Dreamweaver uses file:/// links until you save a page for the first time) into another page</li>
<li>Dreamweaver screws up (it happens but not as often as some folks like to think)</li>
</ul>
<p>The fix is relatively simple. Once you&#8217;re sure you have everything set up correctly, recreate the links. You can find the ones that need fixing by searching the source code for &#8220;file:///&#8221;</p>
<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/images-css-broken.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>Upgrading from Dreamweaver 8 to CS4</title>
		<link>http://www.dwcourse.com/dreamweaver/upgrading-dreamweaver8-cs.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/upgrading-dreamweaver8-cs.php#comments</comments>
		<pubDate>Thu, 02 Apr 2009 21:09:51 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Page Design]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tip of the Day]]></category>
		<category><![CDATA[updates]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Dreamweaver 8]]></category>
		<category><![CDATA[upgrading]]></category>
		<category><![CDATA[user interface]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=29</guid>
		<description><![CDATA[Personally I considered Dreamweaver CS3, Adobe's first upgrade to the program after acquiring it, to be a "must have" update.Obviously, a lot of you didn't see it that way.

Lately I've fielded a lot of questions from people considering upgrading from Dreamweaver 8 (CS2) to Dreamweaver CS4. While it's fairly easy to find information about the incremental updates: from DW8 to CS3 and from CS3 to CS4 (links at the end of this post) I haven't found a source that offers an overview of what's in store if you make the leap from 8 directly to CS4. So I've put together a quick  overview with some brief comments of the features that await you at the end of the DW8 to DWCS4 upgrade process.]]></description>
			<content:encoded><![CDATA[<p></p><p>If you enjoy the information in this article, you may be interested in <a href="http://dwcourse.com/enroll-session2">Dominate Dreamweaver</a>. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99).</p>
<p><em>Click here for <a href="http://dwcourse.com/enroll-session2">more information</a> or use the button below to register now.</em></p>
<p><a href="http://dwcourse.com/amember/signup.php"><img class="aligncenter size-full wp-image-515" title="order-button" src="http://dwcourse.com/wp-content/uploads/2009/09/order-button.jpg" alt="order-button" width="263" height="159" /></a></p>
<hr />
<p>Personally I considered Dreamweaver CS3, Adobe&#8217;s first upgrade to the program after acquiring it, to be a &#8220;<strong>must have</strong>&#8221; update.Obviously, a lot of you didn&#8217;t see it that way.</p>
<p>Lately I&#8217;ve fielded a lot of questions from people considering upgrading from Dreamweaver 8 (CS2) to Dreamweaver CS4. While it&#8217;s fairly easy to find information about the incremental updates: from DW8 to CS3 and from CS3 to CS4 (links at the end of this post) I haven&#8217;t found a source that offers an overview of what&#8217;s in store if you make the leap from 8 directly to CS4. So I&#8217;ve put together a quick  overview with some brief comments of the features that await you at the end of the DW8 to DWCS4 upgrade process.<span id="more-29"></span></p>
<h2>New in CS3</h2>
<p><em><strong>Overview:</strong> CS3 marked the beginning of the process of integrating Dreamweaver into Creative Suite but more importantly it was the first version of Dreamweaver  to support CSS (Cascading Style Sheets) styles and layout in a manner accessible to non-programmers. That feature alone made CS3 a required update in my book. Of course with the new functionality there was also a bit of a learning curve.</em></p>
<ul>
<li><strong>Integration with Adobe Creative Suite</strong>
<ul>
<li>Copy and paste from Photoshop</li>
</ul>
</li>
<li><strong>Improved CSS handling</strong>
<ul>
<li>Convert inline CSS to a rule</li>
<li>Built-in CSS-based page layouts</li>
</ul>
<p><strong>Spry (AJAX) widgets and effects</strong></p>
<ul>
<li>Pop-out menus, &#8220;accordion&#8221; panels and more</li>
</ul>
<ul>
<li><strong>Browser compatibility checking</strong><br />
Hints<br />
Community-based help</li>
</ul>
</li>
<li><strong>Tag Inspector</strong>: right click to view</li>
<li><strong>Adobe Device Central</strong>
<ul>
<li>Preview designs for mobile devices</li>
</ul>
</li>
<li><strong>Better Intel support for Macs</strong></li>
</ul>
<h2>New in CS4</h2>
<p>CS4 continues Dreamweaver&#8217;s integration into Creative Suite but the changes are more evolutionary than those in CS3. What you&#8217;ll notice immediately is several UI (user interface) changes that may take a bit of getting used to. Other changes offer increase functionality &#8211; especially In-Context Edit and AIR Authoring &#8211; but you might never notice them if you don&#8217;t go looking.</p>
<ul>
<li><strong>Improved integration with Adobe Creative Suite</strong>
<ul>
<li>Photoshop Smart Objects automatically update placed images when the linked Photoshop image is changed</li>
</ul>
</li>
<li><strong>New Workspaces</strong>
<ul>
<li>Built in workspaces: App Developer, App Developer Plus, Classic, Coder, Coder Plus, Designer, Designer Compact</li>
<li>Ability to create and save custom workspaces</li>
</ul>
</li>
<li><strong>Related Files Bar</strong>
<ul>
<li>Easy access to linked JavaScript and CSS files</li>
</ul>
</li>
<li><strong>Live View</strong>
<ul>
<li>View JavaScript and CSS effects within Dreamweaver</li>
<li>View effects of code changes &#8220;live&#8221;</li>
</ul>
</li>
<li><strong>Improved code hinting</strong>
<ul>
<li>AJAX and JavaScript code hinting</li>
</ul>
</li>
<li> <strong>In-context  editing</strong>
<ul>
<li>Online editing through an Adobe hosted service</li>
</ul>
</li>
<li><strong>HTML Datasets</strong>
<ul>
<li>Import tabular data from an HTML file into a sortable table</li>
</ul>
</li>
<li><strong>Subversion Version Control</strong>
<ul>
<li>Improved version control for site with multiple authors</li>
</ul>
</li>
<li><strong>AIR Authoring</strong>
<ul>
<li>Convert your web site into a stand-alone application</li>
</ul>
</li>
<li><strong>Additional document viewing options</strong>
<ul>
<li>When viewing code and design in the Split view, the window can now be split vertically as well as horizontally (menu: View&gt;Split Vertically)</li>
<li>Menu: View&gt;Visual Aids&gt; offers a variety of viewing options to make page elements more readily identifiable</li>
</ul>
</li>
<li><strong>Code Navigator</strong>
<ul>
<li>Easily access code in linked files</li>
</ul>
</li>
<li><strong>Layout Mode for &#8220;drawing&#8221; tables no longer available</strong></li>
</ul>
<h2>The bottom line</h2>
<p><strong>Should you upgrade from Dreamweaver 8 to CS3?</strong></p>
<p>In a word, <strong>YES</strong>. You&#8217;ll get the benefit of two excellent updates, an improved UI and access to &#8220;modern&#8221; web technologies like CSS and AJAX.</p>
<p><strong>What about the learning curve?</strong></p>
<p>Make no mistake you may encounter a significant learning curve moving to CS4. How steep it is will depend upon your familiarity with advanced web technologies such as CSS. If the move to CS4 marks your first venture into CSS-based (as opposed to table-based) layout, expect a few headaches as the wonders (and eccentricities) of Cacscading Style Sheets are revealed.</p>
<p>However, if you&#8217;re serious about web design, the transition to CSS is a requirement and CS4 offers the tools and templates to make the transition possible and rewarding if not always pleasant.</p>
<h2>Additional resources:</h2>
<ul>
<li><a href="http://webdesign.about.com/b/2007/10/16/whats-new-in-dreamweaver-cs3.htm" target="_blank">What&#8217;s new in Dreamweaver CS3</a>: An excellent step-by-step guide the differences between DW8 and CS3</li>
<li><a href="http://www.adobe.com/products/dreamweaver/features/" target="_blank">6 Things To Like About Dreamweaver CS4</a></li>
<li><a href="http://www.adobe.com/products/dreamweaver/features/" target="_blank">Dreamweaver CS4 Features Overview</a> (Adobe)</li>
</ul>
<h2>What&#8217;s your experience?</h2>
<p>If you&#8217;ve got information or tips that you&#8217;d like to share about the Dreamweaver upgrade experience or if you got questions before or after making the link, please leave a comment below.</p>
<p><em><a href="http://twitter.com/DWcourse" target="_blank">Follow me on Twitter…</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/upgrading-dreamweaver8-cs.php/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Editing content in absolutely positioned divs in Dreamweaver</title>
		<link>http://www.dwcourse.com/dreamweaver/absolutely-positioned-divs.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/absolutely-positioned-divs.php#comments</comments>
		<pubDate>Thu, 19 Mar 2009 16:17:20 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dreamweaver CSS]]></category>
		<category><![CDATA[Dreamweaver Content Editing]]></category>
		<category><![CDATA[absolute positioning]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[CSS postitioning]]></category>
		<category><![CDATA[div]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=6</guid>
		<description><![CDATA[Question from @discuit via Twitter: A coder we use has coded the site in Absoloute DIVs, and now we can&#8217;t select any text in Design view. Any idea how to fix it? Answer: Discuit, hover your cursor over the border of the div you want to edit (even one underneath another layer) until it highlights. Then click [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><strong>Question</strong> from @<a href="http://twitter.com/discuit">discuit</a> via Twitter: A coder we use has coded the site in Absoloute DIVs, and now we can&#8217;t select any text in Design view. Any idea how to fix it?</p>
<p><strong>Answer: </strong>Discuit, hover your cursor over the border of the div you want to edit (even one underneath another layer) until it highlights. Then click on border to select div. Now you can click inside the div and edit as usual.</p>
<p>Alternatively, you can also set the CSS visibility property to hidden for the top div in order to access the underlying div for editing. Just make sure you change it back!</p>
<p>Update: And, of course, I overlooked the obvious. Simply select the div you want to edit in Dreamweaver&#8217;s AP Elements tab. Once the div is selected,  you can click inside the div and edit as usual.</p>
<p>Follow me on Twitter: @<a href="http://twitter.com/TOONrefugee">TOONrefugee</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/absolutely-positioned-divs.php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating and Customizing Vertical Spry Menu Bars in Dreamweaver CS3</title>
		<link>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php#comments</comments>
		<pubDate>Tue, 17 Jul 2007 22:48:40 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[spry menus]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designrefugee.com/design-blog/more-spry-menu-bars.html</guid>
		<description><![CDATA[If you enjoy this tutorial, you may be interested in Dominate Dreamweaver. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99). Click here for more information or use [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you enjoy this tutorial, you may be interested in <a href="http://dwcourse.com/enroll-session2">Dominate Dreamweaver</a>. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99).</p>
<p><em>Click here for <a href="http://dwcourse.com/enroll-session2">more information</a> or use the button below to register now.</em></p>
<p><a href="http://dwcourse.com/amember/signup.php"><img class="aligncenter size-full wp-image-515" title="order-button" src="http://dwcourse.com/wp-content/uploads/2009/09/order-button.jpg" alt="order-button" width="263" height="159" /></a></p>
<hr />
<p><em><strong>Note:</strong> This is our second tutorial on customizing Spry menu bars in Dreamweaver CS3. The first covered <a href="http://dwcourse.com/dreamweaver/spry-menu-bars.php">customizing horizontal menu bars</a>. Many of the steps for creating and customizing vertical menu bars are the same as those for horizontal menu bars. That information is repeated here so you won’t have to refer back to the previous article.</em><span id="more-71"></span></p>
<p>As I’ve said already Adobe has documented the CSS files that control the appearance of the menu bars with ample notes to guide the adventurous. They’ve also included a help file that’s actually helpful. You can use the information you&#8217;ll find there to expand on the lessons of this tutorial.</p>
<h2>Getting started:</h2>
<p><em>Before you begin, make sure you have properly defined your website within Dreamweaver.</em></p>
<h2>Creating a vertical menu bar:</h2>
<ol>
<li>Open an existing document or create and save a new one. Dreamweaver CS3 won’t allow you to add a menu bar to an unsaved document. If you try, you’ll be prompted to save the document before proceeding.</li>
<li>Select the location in your document where you want the menu bar to appear.</li>
<li>Select the Spry tab in the Insert palette. (If the Insert pallet is not visible, select Insert from the Windows menu to display it.)<br />
<img src="http://www.designrefugee.com/design-blog/wp-content/insert.jpg" alt="Dreamweaver CS3 Insert Palette" /></li>
<li>Click on the Spry Menu Bar icon in the Insert palette.</li>
<li>You will be asked to select horizontal or vertical for your menu bar layout. Since we’re making a verical menu bar, select verical and click OK. Your menu bar will be placed on the page.</li>
<li>Immediately save the document. You will be informed that your menu bar requires a number of supporting files and prompted to save them. Click OK and DW will save the files in a SpryAssets folder it will create within the root folder of your website.</li>
<li>With the menu selected, you can use the Properties palette to define the links, menus and submenus of your menu bar (to select the menu bar, click on the blue box labeled “Spry Menu Bar for xxxxx” that appears immediately above your menu bar).<br />
<img src="http://www.designrefugee.com/design-blog/wp-content/properties.jpg" alt="Dreamweaver CS3 Menu Bar Properties Palette" /><br />
<em>Note that the Properties palette also contains a link, “Customize this widget.” That leads to the Help file that you are hoping to ignore by reading this. Take my word for it, clicking that link will be worth your while. Go ahead, I’ll wait for you.</em></li>
</ol>
<h2>Customizing the look of the menu bar:</h2>
<p><img title="Vertical Styles" src="http://www.designrefugee.com/design-blog/wp-content/vertical-styles.jpg" alt="Vertical Styles" hspace="6" align="right" /><em>Good, you’re back. In case you didn’t figure it out from the help file, I should let you know that the look of your menu bar is controlled by the styles in the CSS file (SpryMenuBarVertical.css) that Dreamweaver graciously created in the SpryAssets folder. Since we’ll be editing these styles, you’ll need at least a minimal understanding of CSS styles in DW.</em></p>
<p><strong>Type style and size:</strong></p>
<p>DW does not specify styles for the text in its menu bars so the style attributes are picked up from the page element(s) that enclose the menu bar. If you would like to use a specific font, size, weight, style, variant or case attribute for ALL the text in your menu bar, specify it in the ul.MenuBarVertical style. The color of the text will be defined elsewhere.</p>
<p><strong>Menu bar width:</strong></p>
<p><em><strong>Note: </strong>This is the area that differs significantly from the procedure for customizing horizontal menu bars. </em></p>
<p>By default, the width of the top-level menu and each menu item is set to 8 ems.</p>
<p><strong>To specify a specific pixel width for the top-level menu: </strong>In BOTH <strong>ul.MenuBarVertical</strong> and <strong>ul.MenuBarVertical li</strong> styles replace width: 8ems with width: XXXpx.</p>
<p><em>Note that changes made to <strong>ul.MenuBarVertical </strong> and <strong>ul.MenuBarVertical li</strong> affect only the items in your top level menu. The width of pull-down menus is not affected.</em></p>
<p><strong>Menu bar height:</strong></p>
<p><em>Caution! </em>You can control the height of items in your menu bar by specifying a height attribute in the <strong>ul.MenuBarVertical a</strong> style. But be careful. This can cause type to be cropped or even disappear if text is resized or a menu item unexpectedly wraps to a second line. It’s more flexible to let the height of your menu items be determined automatically by the font-size (specified in <strong>ul.MenuBarVertical</strong>) and the padding (specified in <strong>ul.MenuBarVertical a</strong>).</p>
<p><strong>Color of menu items:</strong></p>
<p>The color of menu items in the link state (when they are not being hovered over or clicked) is determined by the <strong>ul.MenuBarVertical a</strong> style. To change the look of your menu items, simply change the default background-color and color styles DW has provided. This is also the place to add borders if you want to visually separate the menu items.</p>
<p><strong>Rollover color of menu items:</strong></p>
<p>To keep it simple, set the background-color and color styles to your preferred rollover colors in the following two style definitions:</p>
<ol>
<li><strong>ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus</strong></li>
<li><strong>ul.MenuBarVertical a.MenuBarItemHover, etc.</strong></li>
</ol>
<p><em>In THEORY, the first definition determines the hover state of menu items and the second definition controls the appearance of menu items with open submenus. In REALITY that’s the way it works in Explorer. However in Firefox and Safari BOTH the hover state and the appearance of menu items with open submenus are governed by the second definition. I usually just make sure both definitions have the same settings for background-color and color and forget about it.</em></p>
<p><strong>Menu bar arrows:</strong></p>
<p>In DW’s vertical menu bars, menu items which open to submenus have a right-pointing arrow at their far right edge. These arrows are actually background images. If you change the background color of menu items or their rollover state, the arrows may become difficult to see.</p>
<p>To change the arrows, edit the background image attribute in the appropriate style definition as described below:</p>
<ul>
<li>Edit <strong>ul.MenuBarVertical a.MenuBarItemSubmenu</strong> for menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarVertical a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of menu items with a submenu.</li>
</ul>
<p>For reference, DW makes available the following images in the SpryAssets folder:</p>
<ul>
<li>SpryMenuBarRight.gif &#8211; black arrow pointing right</li>
<li>SpryMenuBarRightHover.gif &#8211; white arrow pointing right</li>
</ul>
<hr />
<h3>Looking for More Dreamweaver Tips, Tricks &amp; Tutorials?</h3>
<p>If you&#8217;d like to receive more tips and tutorials like this subscribe to my Dreamweaver Tips, Tricks &amp; Tutorials newsletter by completing the form below:<br />
<script src="http://forms.aweber.com/form/77/1825650877.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/more-spry-menu-bars.php/feed</wfw:commentRss>
		<slash:comments>249</slash:comments>
		</item>
		<item>
		<title>Creating and Customizing Horizontal Spry Menu Bars in Dreamweaver CS3</title>
		<link>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php#comments</comments>
		<pubDate>Sat, 14 Jul 2007 22:53:05 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[menus]]></category>
		<category><![CDATA[spry]]></category>
		<category><![CDATA[spry menus]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.designrefugee.com/design-blog/spry-menu-bars.html</guid>
		<description><![CDATA[If you enjoy this tutorial, you may be interested in Dominate Dreamweaver. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99). Click here for more information or use [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you enjoy this tutorial, you may be interested in <a href="http://dwcourse.com/enroll-session2">Dominate Dreamweaver</a>. My 12-week online course which will take your from the Dreamweaver basics through building complex spry menubars and much more is now accepting registrations. The cost for the course is $397 (or three payments of $149.99).</p>
<p><em>Click here for <a href="http://dwcourse.com/enroll-session2">more information</a> or use the button below to register now.</em></p>
<p><a href="http://dwcourse.com/amember/signup.php"><img class="aligncenter size-full wp-image-515" title="order-button" src="http://dwcourse.com/wp-content/uploads/2009/09/order-button.jpg" alt="order-button" width="263" height="159" /></a></p>
<hr />
<p>I should start by saying that Adobe has done an excellent job implementing spry menu bars. More to the point, they have documented the CSS files that control the appearance of the menu bars with ample notes to guide the adventurous. They’ve even included a help file that’s actually helpful. Still, in my experience, a program’s documentation is the last place people look for help so I’ve put together this little tutorial.</p>
<p><span id="more-70"></span></p>
<p><strong><em>Note:</em></strong><em> For the most part the process of customizing horizontal and vertical menu bars is the same but there are differences so I’ll follow up this post with one devoted to vertical menus. However, if you can’t wait, the instructions offered here should provide a good basis for your own experimentation with vertical menu bars.</em></p>
<h2>Getting started:</h2>
<p><em>Before you begin, make sure you have properly defined your website within Dreamweaver. </em></p>
<h2>Create a horizontal menu:</h2>
<ol type="1">
<li>Open an existing document or create and save a new one. Dreamweaver CS3 won’t allow you to add a menu bar to an unsaved document. If you try, you’ll be prompted to save the document before proceeding.</li>
<li>Select the location in your      document where you want the menu bar to appear.</li>
<li>Select the Spry tab in the      Insert palette. (if the Insert pallet is not visible, select Insert from      the Windows menu to display it.)<img title="Dreamweaver CS3 Insert Palette" src="http://www.designrefugee.com/design-blog/wp-content/insert.jpg" alt="Dreamweaver CS3 Insert Palette" vspace="9" /></li>
<li>Click on the Spry Menu Bar      icon in the Insert palette.</li>
<li>You will be asked to select horizontal      or vertical for your menu bar layout. Since we’re making a horizontal menu      bar, select horizontal and click OK. Your menu bar will be placed on the      page.</li>
<li><em>Immediately save the      document. </em>You will be informed that      your menu bar requires a number of supporting files and prompted to save      them. Click OK and DW will save the files in a SpryAssets folder it will      create within the root folder of your website.</li>
<li>With the menu selected, you can use the Properties palette to define the links, menus and submenus of      your menu bar (to select the menu bar, click on the blue box labeled “Spry      Menu Bar for xxxxx” that appears immediately above your menu bar). <em><br />
</em></p>
<p><img title="Dreamweaver CS3 Menu Bar Properties Palette" src="http://www.designrefugee.com/design-blog/wp-content/properties.jpg" alt="Dreamweaver CS3 Menu Bar Properties Palette" vspace="9" /></p>
<p><em>Note that the Properties palette also contains a link, “Customize this widget.” That leads to the Help file that you are hoping to ignore by reading this. Take my word for it, clicking that link will be worth your while. Go ahead, I&#8217;ll wait for you.</em></li>
</ol>
<h2>Customizing the look of the menu bar:</h2>
<p><img title="Menu Bar CSS" src="http://www.designrefugee.com/design-blog/wp-content/css.jpg" alt="Menu Bar CSS" hspace="9" align="right" /><em>Good, you&#8217;re back. In case you didn&#8217;t figure it out from the help file, I should let you know that the look of your menu bar is controlled by the styles in the CSS file (SpryMenuBarHorizontal.css) that Dreamweaver graciously created in the SpryAssets folder. Since we&#8217;ll be editing these styles, you&#8217;ll need at least a minimal understanding of CSS styles in DW. For instance, you should know &#8211; or be able to figure out &#8211; that when I say “set width: 20%” you should change the style definition so that the width attribute is set to 20%.</em></p>
<p><strong>Type style and size:</strong></p>
<p>DW does not specify styles for the text in its menu bars so the style attributes are picked up from the page element(s) that enclose the menu bar. If you would like to use a specific font, size, weight, style, variant or case attribute for ALL the text in your menu bar, specify it in the <strong>ul.MenuBarHorizontal</strong> style. <em>The color of the text will be defined elsewhere.</em></p>
<p><strong>Menu bar width:</strong></p>
<p>By default, the width of each menu item is set to 8 ems and the overall menu width is set to auto (determined automatically by the width and number of menu items).</p>
<p><strong>To specify a specific pixel width for a menu bar:</strong> In the <strong>ul.MenuBarHorizontal</strong> style replace width: auto with width: XXXpx AND set the width attribute in <strong>ul.MenuBarHorizontal li</strong> to an appropriate value in either percent or pixels.</p>
<p>In other words, if <strong>ul.MenuBarHorizontal</strong> is set to width: 600px and there are four items in the top-level menu, an appropriate setting for <strong>ul.MenuBarHorizontal li</strong> would be either width: 150px OR width: 25%. For a 600 pixel wide top-level menu with 5 items the appropriate setting for <strong>ul.MenuBarHorizontal li</strong> would be width: 20% or width: 120px. Just make sure everything adds up or you may get unexpected results.</p>
<p><em>Note that changes made to <strong>ul.MenuBarHorizontal li</strong> affect only the items in your top level menu. The width of pull-down menus is not affected. Also, you should avoid adding borders to the </em><em><strong>ul.MenuBarHorizontal li </strong></em><em>style. They’ll throw off the width calculations we made above.</em></p>
<p><strong>Menu bar height:</strong></p>
<p><em>Caution!</em> You can control the height of your menu bar by specifying a height attribute in the <strong>ul.MenuBarHorizontal a</strong> style. But be careful. This can cause type to be cropped or even disappear if text is resized or a menu item unexpectedly wraps to a second line.</p>
<p><strong>Color of menu items:</strong></p>
<p>The color of menu items in the link state (when they are not being hovered over or clicked) is determined by the <strong>ul.MenuBarHorizontal a</strong> style. To change the look of your menu items, simply change the default background-color and color styles DW has provided. This is also the place to add borders if you want to visually separate the menu items.</p>
<p><strong>Rollover color of menu items:</strong></p>
<p>To keep it simple, set the background-color and color styles to your preferred rollover colors in the following two style definitions:</p>
<ul>
<li><strong>ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus</strong></li>
<li><strong>ul.MenuBarHorizontal a.MenuBarItemHover, etc.</strong></li>
</ul>
<p><em>In THEORY, the first definition determines the hover state of menu items and the second definition controls the appearance of menu items with open submenus. In REALITY that’s the way it works in Explorer. However in Firefox and Safari BOTH the hover state and the appearance of menu items with open submenus are governed by the second definition. I usually just make sure both definitions have the same settings for background-color and color and forget about it.</em></p>
<p><strong>Menu bar arrows:</strong></p>
<p>The way DW menu bars are constructed, menu items which open to submenus have an arrow (downward -pointing for top-level menus, right pointing for sub-menus) at their far right edge. These arrows are actually background images. If you change the background color of menu items or their rollover state, the arrows may become difficult to see.</p>
<p>To change the arrows, edit the background image attribute in the appropriate style definition as described below:</p>
<ul>
<li>Edit <strong>ul.MenuBarHorizontal a.MenuBarItemSubmenu</strong> for top level menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarHorizontal a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of top level menu items with a submenu.</li>
<li>Edit <strong>ul.MenuBarHorizontal ul a.MenuBarItemSubmenu</strong> for submenus with a second-level submenu beneath them.</li>
<li>Edit <strong>ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover</strong> for the hover (rollover) state of submenus with a second-level submenu beneath them.</li>
</ul>
<p>For reference, DW makes available the following images in the SpryAssets folder:</p>
<ul>
<li>SpryMenuBarDown.gif – black arrow pointing down</li>
<li>SpryMenuBarDownHover.gif – white arrow pointing down</li>
<li>SpryMenuBarRight.gif &#8211; black arrow pointing right</li>
<li>SpryMenuBarRightHover.gif &#8211; white arrow pointing right</li>
</ul>
<hr />
<h3>Looking for More Dreamweaver Tips, Tricks &amp; Tutorials?</h3>
<p>If you&#8217;d like to receive more tips and tutorials like this subscribe to my Dreamweaver Tips, Tricks &amp; Tutorials newsletter by completing the form below:<br />
<script src="http://forms.aweber.com/form/77/1825650877.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/spry-menu-bars.php/feed</wfw:commentRss>
		<slash:comments>243</slash:comments>
		</item>
	</channel>
</rss>
