<?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>Dreamweaver, Flash, Photoshop, CSS, Fireworks and HTML Tips &#38; Tricks &#187; layout</title>
	<atom:link href="http://www.livetrainingsession.com/tips/tag/layout/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.livetrainingsession.com/tips</link>
	<description>Get Quick Tips &#38; Tricks on Web Applications Development Tools</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:16:48 +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>Is Your Web Page Jumping Left and Right?</title>
		<link>http://www.livetrainingsession.com/tips/2010/05/web-page-jumping-left-and-right/</link>
		<comments>http://www.livetrainingsession.com/tips/2010/05/web-page-jumping-left-and-right/#comments</comments>
		<pubDate>Fri, 21 May 2010 03:00:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[bar]]></category>
		<category><![CDATA[centered]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[horizontal]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[min-height]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scrollbars]]></category>
		<category><![CDATA[scrolling]]></category>
		<category><![CDATA[width]]></category>

		<guid isPermaLink="false">http://www.livetrainingsession.com/tips/?p=367</guid>
		<description><![CDATA[I work very often with digital artists and other creative people who are now investing their talents designing web sites. I am always eager and pleased to offer my expertise in web development to help those clients of mine convert a masterpiece  crafted in  Photoshop, Illustrator or Fireworks into  full-blown web templates ready for text [...]]]></description>
			<content:encoded><![CDATA[<p>I work very often with digital artists and other creative people who are now investing their talents designing web sites. I am always eager and pleased to offer my expertise in web development to help those clients of mine convert a masterpiece  crafted in  Photoshop, Illustrator or Fireworks into  full-blown web templates ready for text copy.</p>
<p><span id="more-367"></span></p>
<p>Very often after I am done doing my part and transfered all the  web files  to the client , I receive an email/ phone call a day or so later inquiring why  some pages jump in web browser.</p>
<p>The very first thing the client blames is the current web browser s/he is using, and why not? Then after opening all the major web browsers at his disposition he realizes the issue remains the same on all browsers.</p>
<p><strong>Now, may be I am the one who screwed up!</strong><br />
<strong><span style="color: #ff6600;"> Nope!!</span></strong></p>
<p>In all cases it&#8217;s because web pages have different amount of content some longer than others. When a web page is long enough to exceed the web browser&#8217;s height  then a vertical scroll bar appears.  If on the other hand the web page only has a small amount of copy, everything is shown above the fold and no vertical scroll bar is needed by the web browser.</p>
<p><strong><span style="color: #ff6600;">Cause :</span></strong><br />
When using a <strong>fixed width layout</strong> with <strong>the left and right margins set to auto</strong> on your main container (#wrapper) , your web pages will be <strong>horizontally centered</strong>. The horizontal position of your web page depends on  the available width in your web browser viewport.</p>
<p>Let&#8217;s assume your browser window is 1024 pixels wide and that you have set your page layout to a fixed width of 980 pixels to be horizontally centered.</p>
<ul>
<li> If a page copy is concise  the entire page can be shorter than your browser window&#8217;s height. In this case no vertical scroll bar is necessary. You web page will therefore have a left and right margin of roughly (1024-980)/2, that is about 22 pixels on each side.</li>
<li> Now left assume another web page has a lot of text copy. In this case the page height to exceeds the web browser&#8217;s window height. A vertical scrollbar appears therefore cutting down on the width of the browser&#8217;s viewport.<br />
<strong>The width of the scrollbar is about 20 pixels</strong>, so we are now left with only 1004 px (pixels).</p>
<p>Using the same formulas as above (1004-980)/2, yields 12 pixels for the left and right margin for this web page. That&#8217;s what creates a <strong>10px horizontal shift</strong> to the left when you navigate from short (no vertical scrollbar) to a longer page where the vertical scrollbar is required.</li>
</ul>
<p><strong><span style="color: #ff6600;">Solution:</span></strong><br />
To solve the issue we are facing the solution is to force the web browser to display the vertical scrollbar on every page no matter how much content there is in there.</p>
<ol>
<li>- <strong>Option 1<br />
</strong>Using the &#8216;<em>min-height</em>&#8221; CSS property to  set a minimum height of your main container to match that maximum browser window height of your target audience.</p>
<p>The problem is you do not yet  have that information yet you review your web analytics after your site went live.</p>
<p>However from a personal experience, I found that setting the min-height to <strong>1000px</strong> will generally do the trick. The only hiccup is the  &#8221;<strong>min-height</strong>&#8221; CSS property is not understood by IE6. Therefore users using that version of  Internet Explorer will experience the horizontal page  shift.</li>
<li><strong>- Option 2<br />
</strong>Add a just  enough line breaks (Shift+Enter) or empty paragraphs (Enter) after the content on pages with less copy.</li>
</ol>
<p>Choose whichever option is more suitable to your  design and target audience.<br />
I&#8217;ll go for option 2 for the time being until IE6 disappears from the web landscape.</p>
<p>Does it really matter if a web page shift just a few pixels. For most people, it doesn&#8217;t. heck, most site visitors will even notice or be bothered by it.</p>
<p>But it&#8217;s a great deal for digital artists. Graphic designers are a different breed. A graphic designer will &#8220;fight you&#8221; tooth and nail for 1 pixel and for a good reason. That doesn&#8217;t mean visual artists are very difficult people to work with, on the contrary. They just thrive for perfection.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livetrainingsession.com/tips/2010/05/web-page-jumping-left-and-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use HTML Comments To Solve CSS Layout Issues</title>
		<link>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/</link>
		<comments>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 21:00:29 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[CSS Tips and Tricks]]></category>
		<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[HTML Tips]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[nest]]></category>
		<category><![CDATA[nested]]></category>
		<category><![CDATA[nesting]]></category>
		<category><![CDATA[wrapper]]></category>

		<guid isPermaLink="false">http://www.livetrainingsession.com/tips/?p=86</guid>
		<description><![CDATA[If you are not inclined to use HTML comments in your web page markup you certainly never spent hours trying to fix a messed up CSS layout. That&#8217;s a loss of productivity and money that could have been avoided with just a simple preventive measure: using HTML comments.  It takes less than 20 seconds to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are not inclined to use HTML comments in your web page markup you certainly never spent hours trying to fix a messed up CSS layout. That&#8217;s a loss of productivity and money that could have been avoided with just a simple preventive measure: <strong>using HTML comments.  <span style="font-weight: normal;">It takes less than 20 seconds to write one that could save you an hour of layout troubleshooting.</span></strong></p>
<p><span id="more-86"></span></p>
<p><strong><span style="font-weight: normal;">You just devoted  hours creating a pixel-precision CSS layout,  tweaked and tested it on various web browsers. It all looks good and works perfectly even in IE6.  You now have a  template you can use to create your web pages.  You start adding content, preview  that web page in a browser and surprise, oh surprise, your nicely crafted layout is now out of control.</span></strong></p>
<p><strong>What happened?</strong> <span style="background-color: #ffff00;"> </span><strong><span style="background-color: #ffff00;">More likely mismatched &lt;div&gt;, &lt;p&gt; or &lt;span&gt;,&#8230; tags!!</span></strong></p>
<p>Without proper comments to indicate where each main container tag is closed in the HTML markup, it can be challenging and painful to &#8220;hunt&#8221; the source of this layout issue. Because you now have so many nested  tags, you would have to look into your HTML markup line by line to match each opening and closing tag. And if you happen to miss just one of them, you will have to start all over again from the &#8220;&lt;body&gt;&#8221; tag down.</p>
<p>Let&#8217;s just take a look at this typical  markup within a body of an HTML document:</p>
<p><em><span style="color: #333333;">&lt;div id=&#8221;wrapper&#8221;&gt;</span><span style="font-style: normal;"><em><span style="color: #333333;">&lt;div id=&#8221;header&#8221;&gt;Header content goes here &lt;/div&gt;&lt;div id=&#8221;maincontent&#8221;&gt;&lt;div id=&#8221;content&#8221;&gt; Page content goes here&lt;/div&gt;&lt;div id=&#8221;sidebar&#8221;&gt; Sidebar Navigation&lt;/div&gt;&lt;/div&gt;&lt;div id=&#8221;footer&#8221;&gt; Footer Content goes here&lt;/div&gt;&lt;/div&gt; </span></em></span></em></p>
<p>It looks clean and is self-explanatory. However once you start  to copy &amp; paste content in the different containers  and add new blocks , matching tags becomes a daunting task. That&#8217;s because each container can wrap smaller containers through a nesting process that can go on and on. It&#8217;s hard to tell which closing &#8220;&lt;/div&gt;&#8221; corresponds to which opening &#8220;&lt;div &#8230;&gt;&#8221;.</p>
<p>That&#8217;s why you need to always comments your HTML markup before you start adding content. For instance the markup shown above would be properly commented as follow:</p>
<p><em><span style="color: #333333;">&lt;div id=&#8221;wrapper&#8221;&gt;<br />
</span><em><span style="color: #333333;">&lt;div id=&#8221;header&#8221;&gt;Header content goes here &lt;/div&gt;&lt;!&#8211;  end header &#8211;&gt;<br />
&lt;div id=&#8221;maincontent&#8221;&gt;<br />
&lt;div id=&#8221;content&#8221;&gt; Page content goes here&lt;/div&gt;&lt;!&#8211;  end content &#8211;&gt;<br />
&lt;div id=&#8221;sidebar&#8221;&gt; Sidebar Navigation&lt;/div&gt;&lt;!&#8211; end sidebar &#8211;&gt;<br />
&lt;/div&gt;&lt;!&#8211; end maincontent &#8211;&gt;<br />
&lt;div id=&#8221;footer&#8221;&gt; Footer Content goes here&lt;/div&gt;&lt;!&#8211; end footer &#8211;&gt;<br />
&lt;/div&gt;&lt;!&#8211; end wrapper &#8211;&gt;</span></em></em></p>
<p>The portions &#8220;&lt;!&#8211; &#8230; &#8211;&gt;&#8221; are HTML comments. The will never be displayed by a web browser when placed in your HTML markup.<br />
So the tips I would like to share with you based on my daily experience are:</p>
<ul>
<li> Comments helps you annotate your markup for future reference.</li>
<li>Add an HTML comment right after the closing tag &#8220;&lt;/div&gt;&#8221; tag of each main container.</li>
<li>Commenting your HTML code  help you set reference point where each HTML tags is closed.</li>
<li>HTML comments  helps you  isolate  each block and quickly fix a CSS  layout issue.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.livetrainingsession.com/tips/2010/02/use-html-comments-to-solve-css-layout-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Dreamweaver CSS Layout Templates</title>
		<link>http://www.livetrainingsession.com/tips/2009/11/using-dreamweaver-css-layout-templates/</link>
		<comments>http://www.livetrainingsession.com/tips/2009/11/using-dreamweaver-css-layout-templates/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 23:13:18 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Dreamweaver Tips]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://www.livetrainingsession.com/tips/?p=3</guid>
		<description><![CDATA[Dreamweaver CS4 is shipped with a load of pre-designed CSS layouts you can use to position the main blocks of your website/blog design with just a few clicks. Open a new document then choose the appropriate options for the new web page you are about to design: New document Type Page Type CSS layout Document [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-4" style="margin:0 10px 10px 0;" title="dreamweaver_css_layouts" src="http://www.livetrainingsession.com/tips/wp-content/uploads/2009/11/dreamweaver_css_layouts-300x193.gif" alt="dreamweaver_css_layouts" width="300" height="193" /> Dreamweaver CS4 is shipped with a load of pre-designed CSS layouts you can use to position the main blocks of your website/blog design with just a few clicks.<span id="more-3"></span></p>
<div>
Open a new document then choose the appropriate options for the new web page you are about to design:</p>
<ul>
<li>New document Type</li>
<li>Page Type</li>
<li>CSS layout</li>
<li>Document Type Definition</li>
<li>Linked or Embedded CSS</li>
</ul>
</div>
<p>
No matter how complex your website layout appears to be, you will for sure find the CSS layout that matches your design&#8217;s wireframes including the typical main containers such as the header, navigation bar and page content area. Smaller elements can then be wrapped by those main blocks.</p>
<p>
Those Dreamweaver CSS layouts are cross-browser compatible therefore saving you time and the frustration of having to test your layout again all popular web browsers. All you need is make a few easy tweaks from the Dreamweaver CSS panel to update the dimensions, background styles and you can start adding your design elements.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.livetrainingsession.com/tips/2009/11/using-dreamweaver-css-layout-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
