<?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 postitioning</title>
	<atom:link href="http://www.dwcourse.com/dreamweaver/tag/css-postitioning/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>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>
