<?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>Expression Web Tips &#187; CSS</title>
	<atom:link href="http://www.expression-web-tips.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.expression-web-tips.com</link>
	<description>Expression Web Tips &#38; Help</description>
	<lastBuildDate>Sun, 27 Nov 2011 20:45:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to adjust the spacing of the  paragraph tag using CSS</title>
		<link>http://www.expression-web-tips.com/how-to-adjust-the-spacing-of-the-paragraph-tag-using-css/</link>
		<comments>http://www.expression-web-tips.com/how-to-adjust-the-spacing-of-the-paragraph-tag-using-css/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 20:59:11 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=903</guid>
		<description><![CDATA[<p>The &#60;p&#62; tag defines a paragraph. The p element automatically creates some space before and after itself. The space is automatically applied by the browser, or you can specify it in a style sheet. Suppose you want to  custom adjust the automatic spacing added around a paragraph of text in HTML. You can easily [...]]]></description>
			<content:encoded><![CDATA[<p>The &lt;p&gt; tag defines a paragraph. The p element automatically creates some space before and after itself. The space is automatically applied by the browser, or you can specify it in a style sheet. Suppose you want to  custom adjust the automatic spacing added around a paragraph of text in HTML. You can easily do that by creating style rules for the p tag itself or create a class with style rules to apply to the &lt;p&gt; tag.<br />
<strong><br />
Example:</strong></p>
<p>This  style rule <strong>p { margin-bottom: 1em; margin-top: 1em; }</strong> added to your external style sheet, would add a top and bottom margin of 1em to ALL of your paragraphs.</p>
<p style="margin-top: 1em; margin-bottom: 1em;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus accumsan dolor ac orci? Pellentesque vitae libero in lacus tincidunt ultricies! Nam eleifend ultricies dui! Quisque mattis tempus ligula. Nulla non diam in arcu adipiscing porttitor. Nulla libero mi, suscipit id, semper eu, lobortis non, metus! Sed dui pede, consectetuer vitae, adipiscing et, posuere quis, nulla. Mauris ornare semper justo. Morbi at libero ut justo ultrices dignissim? Cras nunc. Sed metus quam, consequat vel, euismod et, pulvinar ut, sem. Vestibulum euismod massa posuere massa.</p>
<p><strong>Example:</strong></p>
<p>This style rule  <strong>p { margin: 50px;  }</strong> would add a top, right, bottom, and left,  margin of 50px to ALL of your paragraphs.</p>
<p style="margin: 50px;">Quisque imperdiet turpis vitae metus. Vivamus consectetuer mauris non massa. In pretium, turpis et adipiscing elementum, ligula ipsum elementum risus, eget rhoncus nunc orci vel mi. Cras nunc. In ac eros nec tellus blandit suscipit. Sed aliquet luctus lectus. Nunc eleifend iaculis arcu. Phasellus mollis elementum pede. Integer et quam eu velit interdum laoreet. Sed sapien dolor, gravida non, congue eget, consequat sed, enim. Sed bibendum orci in nisl. Suspendisse elit? Sed ut magna. In dignissim. Nulla ornare pharetra libero. Praesent nunc magna, placerat congue, pretium et, ultricies sit amet, elit? Morbi enim nisl, sagittis ut, lobortis eget, blandit tincidunt, urna. In rutrum, diam vel dignissim consectetuer, libero pede pulvinar tortor; semper tincidunt massa nibh quis ipsum. Donec id nisl nec nisl varius porta. Cras ac purus.</p>
<p>If you do not want the style rules to apply to all paragraphs within your site, then create a class and apply the class to the &lt;p&gt; tag.</p>
<p><strong>Example:</strong></p>
<p>p.smspace {margin: 2px 0px}</p>
<p>&lt;p class=&#8221;smlspace&#8221;&gt;Paragraph of text would go here.&lt;/p&gt;</p>
<p style="margin: 5px 0px;">Quisque imperdiet turpis vitae metus. Vivamus consectetuer mauris non massa. In pretium, turpis et adipiscing elementum, ligula ipsum elementum risus, eget rhoncus nunc orci vel mi. Cras nunc. In ac eros nec tellus blandit suscipit. Sed aliquet luctus lectus. Nunc eleifend iaculis arcu. Phasellus mollis elementum pede. Integer et quam eu velit interdum laoreet. Sed sapien dolor, gravida non, congue eget, consequat sed, enim. Sed bibendum orci in nisl. Suspendisse elit? Sed ut magna. In dignissim. Nulla ornare pharetra libero. Praesent nunc magna, placerat congue, pretium et, ultricies sit amet, elit? Morbi enim nisl, sagittis ut, lobortis eget, blandit tincidunt, urna. In rutrum, diam vel dignissim consectetuer, libero pede pulvinar tortor; semper tincidunt massa nibh quis ipsum. Donec id nisl nec nisl varius porta. Cras ac purus.</p>
<p style="margin: 5px 0px;">Quisque imperdiet turpis vitae metus. Vivamus consectetuer mauris non massa. In pretium, turpis et adipiscing elementum, ligula ipsum elementum risus, eget rhoncus nunc orci vel mi. Cras nunc. In ac eros nec tellus blandit suscipit. Sed aliquet luctus lectus. Nunc eleifend iaculis arcu. Phasellus mollis elementum pede. Integer et quam eu velit interdum laoreet. Sed sapien dolor, gravida non, congue eget, consequat sed, enim. Sed bibendum orci in nisl. Suspendisse elit? Sed ut magna. In dignissim. Nulla ornare pharetra libero. Praesent nunc magna, placerat congue, pretium et, ultricies sit amet, elit? Morbi enim nisl, sagittis ut, lobortis eget, blandit tincidunt, urna. In rutrum, diam vel dignissim consectetuer, libero pede pulvinar tortor; semper tincidunt massa nibh quis ipsum. Donec id nisl nec nisl varius porta. Cras ac purus.</p>
<p>Experiment with the various styles you create to get the look you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/how-to-adjust-the-spacing-of-the-paragraph-tag-using-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>7 tips to organize your CSS</title>
		<link>http://www.expression-web-tips.com/organize-your-css/</link>
		<comments>http://www.expression-web-tips.com/organize-your-css/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 17:29:43 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=803</guid>
		<description><![CDATA[<p>Always on the lookout for articles on Cascading Style Sheets &#8211; CSS for short &#8211; I ran across this one this morning, 7 tips to organize your CSS. Do you already have a method for organizing your CSS? If not, try following these simple tips.</p> Group your CSS files into a folder &#8211; Perhaps [...]]]></description>
			<content:encoded><![CDATA[<p>Always on the lookout for articles on Cascading Style Sheets &#8211; CSS for short &#8211; I ran across this one this morning, 7 tips to organize your CSS. Do you already have a method for organizing your CSS? If not, try following these simple tips.</p>
<ol>
<li><strong>Group your CSS files into a folder</strong> &#8211; Perhaps in additional to your main style sheet, you have one for print styles and one for your menu. Create a folder for all of your style sheets. Name it css or styles and make sure you save each of the style sheets within that folder. It may help you improved your website structure.</li>
<li><strong>Use efficient selectors</strong> &#8211; Understand how browsers read your css selectors, from right to left. Note that the use of <a href="http://code.google.com/speed/page-speed/docs/rendering.html">efficient CSS selectors</a> is a nowadays requirement.</li>
<li><strong>Comment and separate your CSS rules</strong> -  Do you remember what each of the style rules you created within your css are meant to be used for? Most style sheets contain some reset styles, styles for the header, navigation, content and footer. You can easily separate these and add comments to make them easier for you to work with. If you are using Expression Web and see a lot of style1, style2, style3, etc, etc, this is especially true.</li>
<li><strong>Create a simple color scheme to use for your styles</strong> &#8211; Your css file may use a lot common styles and colors. A css comment as simple as<br />
/* Colors: Light Gray #eaeaea, Dark Gray #828282, Red #c60000 */<br />
can be helpful to you.</li>
<li><strong>Use a meaningful naming convention for your selectors</strong><strong> -</strong> An example might include #header for the container for your masthead. #header for the imageg that appears within the masthead<strong> </strong>OR #header .title and #header .tagline.<strong><br />
</strong></li>
<li><strong>Create your own small CSS framework</strong> &#8211; By doing this you will be able to use these common CSS classes at any time for any elements from your markup.</li>
<li>Simple is better</li>
</ol>
<p>Read <a title="7 Tips to Organize Your CSS." href="http://www.red-team-design.com/tips-to-organize-your-css">7 tips to organize your CSS</a> complete with more examples.  And while you are there, explore some of his other articles  and tutorials.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/organize-your-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Structural Naming Convention in CSS</title>
		<link>http://www.expression-web-tips.com/structural-naming-convention-in-css/</link>
		<comments>http://www.expression-web-tips.com/structural-naming-convention-in-css/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 17:33:11 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=714</guid>
		<description><![CDATA[<p>Found this interesting and informative post on the Six Revisions blog which is part of his CSS Tips series.</p> <p>Structural naming convention means that you name elements by describing what they are, rather than where they are or how the look. You do this by assigning a class (dot) or id (# hash mark) [...]]]></description>
			<content:encoded><![CDATA[<p>Found this interesting and informative post on the Six Revisions blog which is part of his <strong>CSS Tips series</strong>.</p>
<p><strong>Structural naming convention</strong> means that you name elements by describing what they are, rather than where they are or how the look. You do this by assigning a class (dot) or id (# hash mark) to the element.  <strong>Presentational naming</strong> describes the location and/or appearance of web page elements.</p>
<p>The post discusses the concept of structural naming conventions, the benefits of using this convention, and shares some guidelines on practical applications of structural naming conventions.</p>
<p>First he gives an example (1) of a presentational naming layout and then discusses what is wrong with this approach. The presentational naming layout inlcudes:</p>
<ul>
<li>#top-div</li>
<li>#left-col</li>
<li>#right-col</li>
<li>#bottom-div</li>
</ul>
<p>The next example (2) uses a structural naming convention and includes the following:</p>
<ul>
<li>#header</li>
<li>#main-content</li>
<li>#secondary-content</li>
<li>#footer</li>
</ul>
<p>Example 3 really uses structural naming conventions which includes:</p>
<ul>
<li>#branding</li>
<li>#main-content</li>
<li>#secondary-content</li>
<li>#site-info</li>
</ul>
<p>The last example,using  fully-structural in naming conventions,  describes what the div’s and other elements are for, instead of where they are or how they look.</p>
<p>The second part of the post offers a few guidelines which include:</p>
<ol>
<li>When assigning a class or id, ask yourself “What is this element for?”</li>
<li>Avoid using names that rely on locational or visual aspects of the particular element.</li>
<li>Use names that are intuitive to you.</li>
</ol>
<p>He also includes some Further reading resources on this same topic:</p>
<ul>
<li>
<a href="http://meyerweb.com/eric/thoughts/2004/06/26/structural-naming/">Structural  Naming</a></li>
<li><a href="http://articles.techrepublic.com.com/5100-10878_11-5286783.html">Standardizing  CSS class and id names</a></li>
<li><a href="http://www.digital-web.com/articles/build_for_the_future_bend_dont_break/">Build  for the Future: Bend, Don’t Break</a></li>
</ul>
<p>You can read  <a title="CSS Tip #2: Structural Naming Convention in CSS" href="http://sixrevisions.com/css/css-tips/css-tip-2-structural-naming-convention-in-css/">CSS Tip #2: Structural Naming Convention in CSS</a> in its entirety.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/structural-naming-convention-in-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML / CSS Template Creation Tips and Tricks</title>
		<link>http://www.expression-web-tips.com/html-css-template-creation-tips-and-tricks/</link>
		<comments>http://www.expression-web-tips.com/html-css-template-creation-tips-and-tricks/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 18:35:40 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML - XHTML]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=687</guid>
		<description><![CDATA[<p>NEW: From the Factory Tutorial — Today we are going to look at some tips and tricks you can implement when creating an (x)html &#38; css template. Hopefully these tips will increase the overall quality of your templates.</p> Write clean code with consistent indentation &#8211; When writing your XHTML code, be consistent in the [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>NEW: From the Factory Tutorial — Today we are going to look at some tips and tricks you can implement when creating an (x)html &amp; css template.  Hopefully these tips will increase the overall quality of your templates.</p></blockquote>
<ol>
<li><strong>Write clean code with consistent indentation</strong> &#8211; When writing your XHTML code, be consistent in the amount of spaces you use to indent the various lines. With Expression Web, you can set this under Tools &gt; Page Editor Options &gt; Code Formatting tab. Sent the number of spaces to be used for Indent. You should also limit the number of bank lines you use in between the lines of code.</li>
<li><strong>Comments are your friend</strong>. Using comments is a good way to keep your code organized. From within Expression Web, you can use Code Snippets to insert comments into both your XHTML code and your CSS Code. Ian Hayes has also developed on add-in for Expression Web 4 <a title="Code Comment Add-in." href="http://gallery.expression.microsoft.com/en-us/CodeCommentAddIn">Code Comment Add-In</a>.</li>
<li><strong>Use folders to organize your files</strong> &#8211; Rather than sticking all your files in the root directory of your website, create folders for your images, styles, and javascript files. I add the following folders to my websites for organizational purposes:
<ol>
<li>images</li>
<li>css</li>
<li>js</li>
<li>dwt</li>
</ol>
</li>
<li><strong>Write standards compliant code</strong>. Make sure to check and see if your XHTML code validates as well as your CSS. This will help ensure that your pages display as you expect in all browsers. Expression Web can help you do this by using the <a title="Compatibility Checker on Status Bar." href="http://www.expression-web-tutorials.com/ew4/compatibility-checker.html">Compatibility Checker on Status Bar</a>.</li>
<li><strong>Use semantic code</strong> &#8211; HTML is used for writing the code, describing the content NOT for styling the content. The basic idea of semantic code is to write markup that describes your sites content. So instead of using &lt;div class=&#8221;title&#8221;&gt;&lt;strong&gt;Title&lt;/strong&gt;&lt;/div&gt; for the title of your page, use &lt;h1&gt;Title&lt;/h1&gt; which is semantic markup.</li>
<li><strong>Link to your CSS stylesheets in the head of the document</strong>. Create an external style sheet and link to it rather than embedding the styles in the head section of your page.</li>
<li><strong>Put your JavaScript at the bottom</strong>. Placing your scripts right before your closing body tag will allow your sites content to load first, before your JavaScript is loaded.</li>
<li><strong>Let Google host your JavaScript framework</strong>.</li>
<li><strong>Don’t forget about Internet Explorer (Conditional Comments)</strong>.</li>
</ol>
<p>Read <a title="HTML / CSS Template Creation Tips and Tricks." href="http://www.mojo-themes.com/2010/07/html-css-template-creation-tips-and-tricks/">HTML / CSS Template Creation Tips and Tricks</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/html-css-template-creation-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Are You Following the Principles of Top Notch CSS Design?</title>
		<link>http://www.expression-web-tips.com/are-you-following-the-principles-of-top-notch-css-design/</link>
		<comments>http://www.expression-web-tips.com/are-you-following-the-principles-of-top-notch-css-design/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 17:22:03 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=676</guid>
		<description><![CDATA[<p>Cascading Style Sheets &#8211; or CSS for short &#8211; allows web designers to separate the presentation of their sites from the content. CSS can be used to style any element of your page or place the elements on the page.</p> <p>CSS can be an extremely powerful markup language for designers.</p> <p>However, the CSS that [...]]]></description>
			<content:encoded><![CDATA[<p>Cascading Style Sheets &#8211; or CSS for short &#8211; allows web designers to separate the presentation of their sites from the content. CSS can be used to style any element of your page or place the elements on the page.</p>
<blockquote><p>CSS can be an extremely powerful markup language for designers.</p>
<p>However, the CSS that is produced is only as good as the principles that are being followed by the designer creating the code.</p>
<p>While you may think that anyone can crank out CSS, there is a big difference between writing CSS and producing top notch CSS.</p>
<p>To ensure that you are on the right track, here are eight CSS principles that every web designer should be following.</p></blockquote>
<p>Are you following these principles for CSS?</p>
<ol>
<li>Take the Time to Validate &#8211; Many of us take the time to validate  our HTML/XHTML code BUT do we do also <a rel="nofollow" href="http://jigsaw.w3.org/css-validator">validate</a> our cascading style sheets? Is the doctype you use up-to-date and correct?</li>
<li>Document (but not in your code) &#8211; Adding comments to your style sheets will help you understand why you did what you did a week or a month from now. It will also help if someone else needs to take over the project at a later date. Adding comments directly to your CSS code will increase the size of the file and, as a result, increase load time. To avoid this, comment your css in a separate file.</li>
<li>Say No to Hacks</li>
<li>Don’t Abuse Divs &#8211; Use the appropriate HTML tag instead of automatically creating a new div.</li>
<li>Put Thought Into Your Class Names -</li>
<li>Embrace Shorthand</li>
<li>Don’t Forget About Printers &#8211; It’s important to use CSS to make your content printer friendly.</li>
<li>Never Stop Learning &#8211; continue to work on learning more about css.</li>
</ol>
<p>Read <a title="Permanent Link to Are You Following the  Principles of Top Notch CSS Design?" href="http://www.webdesignerdepot.com/2008/11/are-you-following-the-principles-of-top-notch-css-design/">Are You Following the Principles of  Top Notch CSS Design?</a> in its entirety.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/are-you-following-the-principles-of-top-notch-css-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is browser chrome?</title>
		<link>http://www.expression-web-tips.com/what-is-browser-chrome/</link>
		<comments>http://www.expression-web-tips.com/what-is-browser-chrome/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 19:58:17 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=657</guid>
		<description><![CDATA[<p>Browser chrome does NOT refer to Google&#8217;s addition to the browser market &#8211; Google Chrome.</p> <p>Browser chrome refers to the borders of a Web browser window, which include the window frames, menus, toolbars and scroll bars. When designing a Web page, the browser chrome must be added to determine the width of the page.</p> [...]]]></description>
			<content:encoded><![CDATA[<p>Browser chrome does NOT refer to Google&#8217;s addition to the browser market &#8211; Google Chrome.</p>
<p>Browser chrome refers to the borders of a Web browser window, which include the window frames, menus, toolbars and scroll bars. When designing a Web page, the browser chrome must be added to determine the width of the page.</p>
<p>If you look at <a href="http://www.expression-web-tutorials.com/browser-chrome/">http://www.expression-web-tutorials.com/browser-chrome/</a> in both Internet Explorer 8 and Firefox, and Opera, you will see that each of them display a slight margin at the top of the page. This is because of the default setting for each of the browsers.</p>
<p>If I add to the body styles on the external style sheet</p>
<p>body {margin: 0px; padding: 0px; }</p>
<p>and view the same page again in all three browsers, you can see the difference.</p>
<p><a href="http://www.expression-web-tutorials.com/browser-chrome/index-two.html">http://www.expression-web-tutorials.com/browser-chrome/index-two.html</a></p>
<p>In all three browsers, the top of the masthead is now flush against the top of the browser.</p>
<h2>CSS Reset</h2>
<p>Adding {margin: 0px; padding: 0px; } to the body tag is referred to as CSS Reset or Reset CSS. Resetting your style or styles  is the process of resetting or setting the styles of an elements to a baseline value,  This allows you to  avoid cross-browser differences due to their built-in default style settings. By resetting your styles, you avoid defaulting to the browser’s built-in styles, which differs from browser to browser.</p>
<p>CSS Reset is important because it removes inconsistent margins, paddings, line-heights, and other attributes that can cause your web pages to display differently across the various browsers. The reset can be as simple as setting the margins and padding for the body tag or more complex as the settings recommended by Eric Meyers in <a title="Reset Tools - Css Reset." href="http://meyerweb.com/eric/tools/css/reset/">CSS Tools: Reset CSS</a></p>
<p>Each of the Site Templates offered by <a title="Migrating from FrontPage to Expression Web." href="http://www.frontpage-to-expression.com/site-templates/">Migrating from FrontPage to Expression Web</a>, makes use of the following CSS Reset</p>
<p>html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {<br />
margin: 0px;<br />
padding: 0px;<br />
border: 0px;<br />
outline: 0px;<br />
font-size: 100%;<br />
}</p>
<p>You can read more about CSS Resets at:</p>
<ul>
<li><a href="http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/">http://sixrevisions.com/css/css-tips/css-tip-1-resetting-your-styles-with-css-reset/</a></li>
<li><a href="http://www.css-reset.com/">http://www.css-reset.com/</a></li>
<li><a href="http://www.vcarrer.com/2010/05/css-mini-reset.html">http://www.vcarrer.com/2010/05/css-mini-reset.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/what-is-browser-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Box Model: The Foundation For Improving Your CSS</title>
		<link>http://www.expression-web-tips.com/css-box-model/</link>
		<comments>http://www.expression-web-tips.com/css-box-model/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 21:44:58 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=371</guid>
		<description><![CDATA[<p class="wp-caption-text">CSS Box Model Illustration</p> <p>The CSS box model lies behind everything you do in CSS. Every element is defined by a rectangular box that encloses that element. Understanding how the box model works is a key to understanding CSS and having greater control over your layout and presentation. . . . .In nutshell, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_378" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-378" href="http://www.expression-web-tips.com/css-box-model/w3schools-box-model/"><img class="size-medium wp-image-378" title="w3schools-box-model" src="http://www.expression-web-tips.com/images/w3schools-box-model-300x162.jpg" alt="CSS Box Model Illustration" width="300" height="162" /></a><p class="wp-caption-text">CSS Box Model Illustration</p></div>
<blockquote><p>The <a href="http://www.w3.org/TR/CSS2/box.html"><strong>CSS box model</strong></a> lies behind everything you do in CSS. Every element is defined by a rectangular box that encloses that element. Understanding how the box model works is a key to understanding CSS and having greater control over your layout and presentation. . . . .In nutshell, the box model in CSS describes the boxes which are being generated for HTML-elements. ~ Steven Bradley ~</p></blockquote>
<p>Details covered in the article include:</p>
<ul>
<li>What is the CSS Box Model?</li>
<li>Differences Between Block Boxes and Inline Boxes</li>
<li>Floats, Positioning, and the Normal Document Flow</li>
<li>Calculating the Widths and Heights of Boxes</li>
<li>Issues with IE6 and the Box Model</li>
</ul>
<p>Read  <a title="Permanent Link to CSS Box Model: The Foundation For Improving Your CSS" rel="bookmark" href="http://www.instantshift.com/2009/11/16/css-box-model-the-foundation-for-improving-your-css/">CSS Box Model: The Foundation For Improving Your CSS</a> and you will learn the tips and techniques for working with the CSS box model.</p>
<h3>Additional Resources for Understanding the CSS Box Model</h3>
<ul>
<li> <a title="Interactive CSS Box Model Demo." href="http://redmelon.net/tstme/box_model/">Interactive CSS Box Model Demo</a></li>
<li><a title="The Box Model." href="http://www.brainjar.com/css/positioning/default.asp">The Box Model</a></li>
<li><a title="The CSS Box Model." href="http://css-tricks.com/the-css-box-model/">The CSS Box Model</a> by Chris Coyier</li>
<li><a title="CSS Box Model by W3Schools." href="http://www.w3schools.com/CSS/css_boxmodel.asp">CSS Box Model</a> by W3Schools</li>
<li><a title="Escaping the Box Model." href="http://3nhanced.com/css/escaping-the-box-model/">Escaping the Box Model</a></li>
<li><a title="&lt;!Doctype html&gt; &amp; IE Box Model" href="http://freepages.rootsweb.ancestry.com/~bristowe/box-model/ie-width-nd.html#">&lt;!Doctype html&gt; &amp; IE Box Model</a> by Barry Carlson</li>
</ul>
<p>If you are using Expression Web, you will see an example of the css box model reference in the Modify Style or New Style Dialog Box when you select the Box category.</p>
<div id="attachment_375" class="wp-caption alignnone" style="width: 310px"><a rel="attachment wp-att-375" href="http://www.expression-web-tips.com/css-box-model/ew-box-model/"><img class="size-medium wp-image-375" title="ew-box-model" src="http://www.expression-web-tips.com/images/ew-box-model-300x275.jpg" alt="Expression Web CSS Box Model Reference." width="300" height="275" /></a><p class="wp-caption-text">Expression Web CSS Box Model Reference.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/css-box-model/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple CSS Tips</title>
		<link>http://www.expression-web-tips.com/simple-css-tips/</link>
		<comments>http://www.expression-web-tips.com/simple-css-tips/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 00:30:14 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=359</guid>
		<description><![CDATA[<p>I&#8217;m always on the lookout for CSS Tips that might help you with your site design and make your work a little simpler. Simple CSS Tips that Go a Long Way has a few suggestions you might want to try out.</p> <p>Sometimes it’s the little things that can make all the difference and there [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m always on the lookout for CSS Tips that might help you with your site design and make your work a little simpler. Simple CSS Tips that Go a Long Way has a few suggestions you might want to try out.</p>
<blockquote><p>Sometimes it’s the little things that can make all the difference and there are plenty of neat little CSS tips that can help with all aspects of design and development. Here are a few great tips that will help you improve your CSS work and help you get the most out of your code.</p></blockquote>
<p>Included are the following:</p>
<ol>
<li>Reset Browsers’ Default Styling  &#8211; many of the <a title="F REE Expression Web Dynamic Web Templates." href="http://www.expression-web-tutorials.com/ew-templates.html">F REE Expression Web DWT&#8217;s </a>that I offer are based on Eric Meyer&#8217;s CSS Sculptor for Expression Web and make use of <a title="Eric Meyer's Reset CSS." href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Eric Meyer’s Reset CSS</a></li>
<li>CSS Cursor Tip</li>
<li>CSS Sprite Images</li>
<li>Focus States for Form Fields</li>
<li>Useful Comments</li>
<li>Center Elements Horizontally</li>
<li>Override Inline Styles</li>
<li>Easily Find Elements to Fix Problems</li>
<li>Print Style Sheet</li>
</ol>
<p>You can read <a title="Simple CSS Tips that Go a Long Way." href="http://inspectelement.com/articles/simple-css-tips-that-go-a-long-way/">Simple CSS Tips that Go a Long Way</a> by Tom Kenny in its entirety and get the css for each of the suggestions listed above to try out on your own site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/simple-css-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>max-width and IE6</title>
		<link>http://www.expression-web-tips.com/max-width-and-ie6/</link>
		<comments>http://www.expression-web-tips.com/max-width-and-ie6/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 17:10:21 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML - XHTML]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=306</guid>
		<description><![CDATA[<p>I have been working on a new set of templates to offer to the Migrating from FrontPage to Expression Web EBook owners and class students. I wanted to use a photo taken by a friend in the masthead. I also wanted to limit the width of the container for the page content to no [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on a new set of templates to offer to the <a title="Migrating from FrontPage to Expression Web." href="http://www.frontpage-to-expression.com/">Migrating from FrontPage to Expression Web</a> EBook owners and class students. I wanted to use a photo taken by a friend in the masthead. I also wanted to limit the width of the container for the page content to no wider than 1200px. No problem, just use max-width property in the external style sheet.</p>
<p>Example:</p>
<blockquote>
<pre>#outerWrapper {
	background-color: #fff;
	width: 80%;
	text-align: left;
	max-width: 1200px;
	margin: 20px auto;

}</pre>
</blockquote>
<p>Only one problem, Internet Explorer 6 and below does not recognize the max-width property. So I went searching with my friend Google and came up with a number of suggestions for fixes:</p>
<ul>
<li><a title="Stu Nicholls | CSSplay | max-width for Internet Explorer IE6." href="http://www.cssplay.co.uk/boxes/maxwidth.html">Stu Nicholls | CSSplay | max-width for Internet Explorer IE6</a> -  a CSS only answer to &#8216;max-width&#8217; for IE6.</li>
<li><a title="Permalink: CSS Hackz Series: Minimum Width, Maximum Width for Internet Explorer 6" href="http://perishablepress.com/press/2008/05/19/css-hackz-series-minimum-width-maximum-width-for-internet-explorer-6/">CSS Hackz Series: Minimum Width, Maximum Width for Internet Explorer 6</a></li>
<li><a title="Setting Maximum Width For Image In IE6, IE7 &amp; Firefox ~ Mattias Geniar." href="http://mattiasgeniar.be/2008/08/22/setting-maximum-width-for-image-in-ie6-ie7-firefox/">Setting Maximum Width For Image In IE6, IE7 &amp; Firefox ~ Mattias Geniar</a></li>
<li><a title="CSS minimum and maximum sizes." href="http://www.doxdesk.com/software/js/minmax.html">doxdesk CSS minimum and maximum sizes</a> &#8211; This script makes these CSS properties work transparently in IE version 5.0 upwards on all platforms except Mac.</li>
</ul>
<p>My choices seemed to be to use a simple “hack” to get it working, by using expressions (in javascript-like syntax) in CSS which Expression Web 3.0 did NOT like or javascript. I chose the latter and used the last one on the above list as it seemed to handle not only max-width, but min-width, max-height, and min-height. Of course, if the viewer has javascript disabled it will not work.</p>
<p>The three column template that is one of the three offered in this package looks like the image below and should display from 800x600px with no horizontal scroll and for higher resolution monitors will display at no wider than 1200px. A simple solution to a vexing problem.</p>
<p>So if you want to use a minimum or maximum width or height as part of your style sheet, you might give <a title="CSS minimum and maximum sizes." href="http://www.doxdesk.com/software/js/minmax.html">doxdesk CSS minimum and maximum sizes</a> a try. Just download the <a title="minmax.js." href="http://www.doxdesk.com/file/software/js/minmax.js">minmax.js</a> file and publish it to your server. Then add the following line of code to your DWT:</p>
<blockquote><p><code>&lt;script type="text/javascript" src="minmax.js"&gt;&lt;/script&gt; </code></p></blockquote>
<p>Make sure you adjust the path to the script to where you have published it to your server. My javascript files are located in a folder called js.</p>
<div id="attachment_312" class="wp-caption alignnone" style="width: 383px"><img class="size-full wp-image-312" title="misty-morn3" src="http://www.expression-web-tips.com/images/misty-morn31.jpg" alt="misty-morn3" width="373" height="402" /><p class="wp-caption-text">Misty Morn 3 Column Template.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/max-width-and-ie6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mastering CSS Coding: Getting Started</title>
		<link>http://www.expression-web-tips.com/mastering-css-coding-getting-started/</link>
		<comments>http://www.expression-web-tips.com/mastering-css-coding-getting-started/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:54:03 +0000</pubDate>
		<dc:creator>Patricia Geary</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.expression-web-tips.com/?p=302</guid>
		<description><![CDATA[<p>Smashing Magazine is a great online resource. Todays offering is Mastering CSS Coding: Getting Started.</p> <p>CSS has become the standard for building websites in today’s industry. Whether you are a hardcore developer or designer, you should be familiar with it. CSS is the bridge between programming and design, and any Web professional must have [...]]]></description>
			<content:encoded><![CDATA[<p>Smashing Magazine is a great online resource. Todays offering is Mastering CSS Coding: Getting Started.</p>
<blockquote><p>CSS has become the standard for building websites in today’s industry. Whether you are a hardcore developer or designer, you should be familiar with it. CSS is the bridge between programming and design, and any Web professional must have some general knowledge of it. If you are getting your feet wet with CSS, this is the perfect time to fire up your favorite text editor and follow along in this tutorial as we cover the most common and practical uses of CSS.</p></blockquote>
<p>Covered in the article are:</p>
<ol>
<li> Padding vs. margin</li>
<li>Floats</li>
<li> Center alignment</li>
<li>Ordered vs. unordered lists</li>
<li>Styling headings</li>
<li>Overflow</li>
<li>Position</li>
</ol>
<p>Once the basics are covered, they add some enhancements:</p>
<ol>
<li>Background images</li>
<li>Image enhancement</li>
<li>PSD to XHTML</li>
</ol>
<p>Read <a title="Mastering CSS Coding: Getting Started" rel="bookmark" href="http://www.smashingmagazine.com/2009/10/05/mastering-css-coding-getting-started/">Mastering CSS Coding: Getting Started</a> complete with examples.  If you are a beginner using CSS and Expression Web, this may help you to better understand the styles created.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.expression-web-tips.com/mastering-css-coding-getting-started/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

