<?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; Dreamweaver CSS</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/category/dreamweaver-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>The Ten Commandments for Editing Dreamweaver’s Spry Menubars</title>
		<link>http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php</link>
		<comments>http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:28:43 +0000</pubDate>
		<dc:creator>jcook</dc:creator>
				<category><![CDATA[Dominate Dreamweaver]]></category>
		<category><![CDATA[Dreamweaver CSS]]></category>
		<category><![CDATA[Dreamweaver Tips]]></category>

		<guid isPermaLink="false">http://dwcourse.com/?p=1097</guid>
		<description><![CDATA[Adapted from my Dominate Dreamweaver online training course. Back in the day, the Hebrews had a habit of getting themselves into trouble in spite of their favored status with God. So he decided to try to make it easy on them by reducing the rules to Ten Commandments. In search of similar guidance from a [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Adapted from my Dominate Dreamweaver online training course.</em></p>
<p><a href="http://dwcourse.com/wp-content/uploads/2010/04/10commandments-e1271369129866.jpg"><img class="alignright size-full wp-image-1100" title="Moses 10 Commandments iPad" src="http://dwcourse.com/wp-content/uploads/2010/04/10commandments-e1271369129866.jpg" alt="" width="279" height="373" /></a>Back in the day, the Hebrews had a habit of getting themselves into trouble in spite of their favored status with God. So he decided to try to make it easy on them by reducing the rules to Ten Commandments.</p>
<p>In search of similar guidance from a lesser deity (Adobe), I ventured to the top of our local equivalent of Mount Sinai where I received these Ten Commandments for Editing Dreamweaver’s Spry Menubars on a stone iPad.<br />
<span id="more-1097"></span></p>
<blockquote>
<ol>
<li><a href="#one">Thou shalt not edit the style sheet without reading the comments.</a></li>
<li><a href="#two">Thou shalt not edit the styles haphazardly.</a></li>
<li><a href="#three">Verily, rules for some selectors are defined in two locations.</a></li>
<li><a href="#four">Thou shalt not edit the position or display properties within the menubar styles.</a></li>
<li><a href="#five">Thou shalt not use the height property within menubar styles.</a></li>
<li><a href="#six">Thou shalt not apply padding, borders or margins to menubar list items &lt;li&gt;.</a></li>
<li><a href="#seven">Thou shalt not set widths for links &lt;a&gt; within menubars.</a></li>
<li><a href="#eight">Thou shalt not edit the browser hacks.</a></li>
<li><a href="#nine">Thou shalt not edit the menubar JavaScript file.</a></li>
<li><a href="#ten">Verily I say unto you, a new style shall appear to define the appearance of submenus.</a></li>
</ol>
</blockquote>
<p><em>Click a commandment above to view the related commentary.</em></p>
<h3 id="one">I. Thou shalt not edit the style sheet without reading the comments.</h3>
<blockquote><p>Some very clever person at Adobe (God bless them) hath taken the time to insert extensive comments into the code of the menubar CSS file. Open the CSS file and read those comments and you shall be enlightened (and save a lot of wasted effort).</p></blockquote>
<h3 id="two">II. Thou shalt not edit the styles haphazardly.</h3>
<blockquote><p>Adobe hath joined the various styles rules together to function in harmony. Editing them without a clear plan and understanding of their purpose is guaranteed to create more problems than solutions.</p>
<p>A good plan is to edit styles according to the structure of the HTML page (and for that matter the order the styles appear in the css file).</p>
<ol>
<li>Overall list (ul.MenuBarVertical or ul.MenuBarHorizontal)</li>
<li>Top-level list items (ul.MenuBarVertical li or ul.MenuBarHorizontal li)</li>
<li>Overall sub-menus (ul.MenuBarVertical ul or ul.MenuBarHorizontal ul – notice the second ul)</li>
<li>Sub-menu list items (ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li)</li>
<li>Links (styles related to the &lt;a&gt; tag including hover, focus, etc. states)</li>
</ol>
</blockquote>
<h3 id="three">III. Verily, rules for some selectors are defined in two locations.</h3>
<blockquote><p>Adobe hath divided the LAYOUT INFORMATION from the DESIGN INFORMATION (not a bad idea) so rules using the same style selectors may appear in both locations. You can edit them in either place but make sure the properties you set in the layout section aren’t overwritten in the design section.</p></blockquote>
<h3 id="four">IV. Thou shalt not edit the position or display properties within the menubar styles.</h3>
<blockquote><p>Those who have not yet eaten the fruit from the tree of CSS knowledge are often tempted to edit the position and display properties within the menubar styles. While some sins go unpunished, this one rarely does. It WILL break your menu. And, while we’re on the subject, don’t go adding position or display properties to the style rules that don’t have them either.</p></blockquote>
<h3 id="five">V. Thou shalt not use the height property within menubar styles.</h3>
<blockquote><p>It’s very tempting to try to “force” your menubar to conform to your design by defining a CSS height property for one or more of the menu elements and you might get away with it. But the odds are that, under some conditions, one of your menu items will wrap to a second line and the height properties you so meticulously set will be ignored or your links partially obscured.</p>
<p>To be delivered from this evil, the best practice is to allow the height of your menu and menu items to be determined by a combination of the text-size and padding of your menu link &lt;a&gt; style.</p></blockquote>
<h3 id="six">VI. Thou shalt not apply padding, borders or margins to menubar list items &lt;li&gt;.</h3>
<blockquote><p>Set the width of your menubar “buttons” using the list item &lt;li&gt; rules. Since, as it is written, padding, borders and margin add to the width of HTML elements, applying those properties to list items will likely break your design.</p>
<p>Apply padding and borders to your buttons using the link &lt;a&gt; rules.</p></blockquote>
<h3 id="seven">VII. Thou shalt not set widths for links within menubars.</h3>
<blockquote><p>In the commentary for Commandment VI we learned the width of our buttons should be set using the list item style rules. Any attempt to set a width for the links will likely conflict with those settings. But be not afraid, because the display: block property in the link style rule guarantees the link will completely fill its parent li tag.</p></blockquote>
<h3 id="eight">VIII. Thou shalt not edit the browser hacks.</h3>
<blockquote><p>What CSS hacks Adobe hath joined together, let no man set asunder.</p></blockquote>
<h3 id="nine">IX. Thou shalt not edit the menubar JavaScript file.</h3>
<blockquote><p>Yeah though you walk through the valley of Javascript, you shall fear no evil (if you just leave it alone).</p></blockquote>
<h3 id="ten">X. Verily I say unto you, a new style shall appear and it shall define the appearance of submenus.</h3>
<blockquote><p>And God said, “let the styling for the sub-menus be separated from the styling of the main menu.” And it was, with the addition of a new style rule, so.</p>
<p>By creating a new style rule (ul.MenuBarVertical ul li or ul.MenuBarHorizontal ul li for submenu list items and ul.MenuBarVertical ul a or ul.MenuBarHorizontal ul a for submenu links – notice the second ul in the selectors) you can define CSS properties that apply only to submenus (or more precisely to unordered lists that are themselves within an unordered list). And, by the way, you only have to define the properties that you want to be different from the main menu. The rest of the properties will be inherited.</p></blockquote>
<p><strong><em>Now, go forth and sin no more.</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php/feed</wfw:commentRss>
		<slash:comments>15</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>
	</channel>
</rss>
