<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Anna Ullrich : Expression Web 2</title><link>http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx</link><description>Tags: Expression Web 2</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Lorem Ipsum Code Snippet</title><link>http://blogs.msdn.com/anna/archive/2009/05/07/lorem-ipsum-code-snippet.aspx</link><pubDate>Fri, 08 May 2009 00:51:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9595062</guid><dc:creator>Anna</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/anna/comments/9595062.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=9595062</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=9595062</wfw:comment><description>&lt;P&gt;I just made my first contribution to the newish &lt;A href="http://gallery.expression.microsoft.com/" target=_blank mce_href="http://gallery.expression.microsoft.com/"&gt;Gallery&lt;/A&gt; section of the &lt;A href="http://expression.microsoft.com/" target=_blank mce_href="http://expression.microsoft.com/"&gt;Expression Community&lt;/A&gt; website where anyone can add content and templates to share. Here’s a screenshot of the current categories:&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;A href="http://gallery.expression.microsoft.com/" target=_blank mce_href="http://gallery.expression.microsoft.com/"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="categories of the Gallery section of the Expression Community website" border=0 alt="categories of the Gallery section of the Expression Community website" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/image_3.png" width=357 height=374 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/image_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;One of many cool things about the gallery is that you can select a friendly URL name for your&amp;nbsp;contribution and it’s instantly generated. I chose LoremIpsum because I contributed a code snippet that enables Expression Web users to easily insert up to five paragraphs of Latin lorem ipsum filler text into their page. &lt;/P&gt;
&lt;P&gt;Here’s the URL of my contribution:&lt;/P&gt;
&lt;P&gt;&lt;A title=http://gallery.expression.microsoft.com/LoremIpsum href="http://gallery.expression.microsoft.com/LoremIpsum" mce_href="http://gallery.expression.microsoft.com/LoremIpsum"&gt;http://gallery.expression.microsoft.com/LoremIpsum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The following is a cropped screenshot of my code snippet page in the Gallery. As you can see, when you’re logged into the site, you can continue to edit, unpublish, or delete any contribution you make to the Gallery. They even provide download statistics:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://gallery.expression.microsoft.com/LoremIpsum" target=_blank mce_href="http://gallery.expression.microsoft.com/LoremIpsum"&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="Expression Community Gallery page for Lorem Ipsum Latin Filler Text code snippet" border=0 alt="Expression Community Gallery page for Lorem Ipsum Latin Filler Text code snippet" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/image_6.png" width=575 height=382 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/image_6.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The Description area at the bottom is where I provide instructions for Expression Web (versions 1 and 2) users to use the Code Snippet. I’ll repeat those instructions here with additional illustrations.&lt;/P&gt;
&lt;H2&gt;&lt;/H2&gt;
&lt;H2&gt;Adding the Lorem Ipsum code snippet to Expression Web (either versions 1 or 2)&lt;/H2&gt;
&lt;P&gt;This code snippet adds five new snippets to the list of Code Snippets in Expression Web 1 or 2. The snippets enable you to insert one to five paragraphs of lorem ipsum Latin filler text which you can use as a placeholder for content in your web pages. &lt;/P&gt;
&lt;P&gt;Here’s how the new code snippets appear within the Code Snippets list in Expression Web after you’ve installed them:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="list of Code Snippets in Expression Web" border=0 alt="list of Code Snippets in Expression Web" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/lorem_codesnippet_3.png" width=455 height=250 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/lorem_codesnippet_3.png"&gt; &lt;/P&gt;
&lt;P&gt;To add this Code Snippet to Expression Web, do the following:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Download the ZIP file from this page and then extract the file. You should have a file named LoremIpsumLatinFillerText.xml . &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Copy the LoremIpsumLatinFillerText.xml file to one of the following locations on your computer, depending on your operating system: &lt;BR&gt;&lt;BR&gt;
&lt;UL&gt;
&lt;LI&gt;Windows &lt;STRONG&gt;XP&lt;/STRONG&gt;: &lt;BR&gt;C:\Documents and Settings\[your windows user name]\Application Data\Microsoft\Expression\[your version of Expression Web: Web Designer | Web 2]\Snippets &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Windows &lt;STRONG&gt;Vista&lt;/STRONG&gt;: &lt;BR&gt;C:\Documents and Settings\[your windows user name]\AppData\Roaming\Microsoft\Expression\[your version of Expression Web: Web Designer | Web 2]\Snippets &lt;BR&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;In Expression Web, open a web page, go to the Code view and put your cursor where you want the lorem ipsum text to appear, and press CTRL + ENTER. A list of code snippets should appear, like this: &lt;BR&gt;&lt;IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title="list of Code Snippets" border=0 alt="list of Code Snippets" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/lorem_codesnippetcropped_3.png" width=329 height=120 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/LoremIpsumCodeSnippet_D0F7/lorem_codesnippetcropped_3.png"&gt; 
&lt;P&gt;Type lorem to jump to the lorem ipsum code snippets in the list, and then double click the code snippet that you want.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;To learn how to create your own Code Snippet for Expression Web, see this post of mine:&lt;/P&gt;
&lt;P&gt;&lt;A title=http://blogs.msdn.com/anna/archive/2008/03/03/bad-habit-broken-generating-lorem-ipsum-filler-text.aspx href="http://blogs.msdn.com/anna/archive/2008/03/03/bad-habit-broken-generating-lorem-ipsum-filler-text.aspx" mce_href="http://blogs.msdn.com/anna/archive/2008/03/03/bad-habit-broken-generating-lorem-ipsum-filler-text.aspx"&gt;Creating a "content" snippet&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9595062" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web/default.aspx">Expression Web</category><category domain="http://blogs.msdn.com/anna/archive/tags/tutorials/default.aspx">tutorials</category><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx">Expression Web 2</category></item><item><title>Twitter on PHP versus ASP.NET</title><link>http://blogs.msdn.com/anna/archive/2009/01/23/twitter-on-php-versus-asp-net.aspx</link><pubDate>Sat, 24 Jan 2009 00:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9373200</guid><dc:creator>Anna</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/anna/comments/9373200.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=9373200</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=9373200</wfw:comment><description>&lt;P&gt;NETTUTS is a good website for web development and design tutorials: &lt;A class="" title=http://nettuts.com/ href="http://nettuts.com/" target=_blank mce_href="http://nettuts.com/"&gt;http://nettuts.com/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="http://themeforest.net/user/JeffreyWay" target=_blank mce_href="http://themeforest.net/user/JeffreyWay"&gt;Jeffrey Way&lt;/A&gt;, the person behind the NETTUTS website also maintains a NETTUTS profile on both &lt;A href="http://www.facebook.com/profile.php?sid=32ace1506b178a76926b2766c236ff87&amp;amp;id=1404318644&amp;amp;hiq=nettuts" target=_blank&gt;Facebook&lt;/A&gt; and &lt;A class="" href="http://twitter.com/NETTUTS" target=_blank mce_href="http://twitter.com/NETTUTS"&gt;Twitter&lt;/A&gt; where his latest statuses caught my eye.&lt;/P&gt;
&lt;P&gt;Turns out he innocently posted an update to TWITTER in support of ASP.NET with a slight knock against PHP, and apparently that brought a lot of responses from other Twitterers, both ASP.NET and PHP developers on PHP vs. ASP.NET.&lt;/P&gt;
&lt;P&gt;Here are NETTUT’s tweets in order of their appearance:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I just received a fantastic series of about 25 ASP.NET (C#) videos that we'll be posting on the site. Really excited to offer these. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;People are quick to attack ASP.NET - mostly because of ignorance. Take a look at what corporations are looking for. You won't see much PHP. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Not to say that I don't love PHP; I do...very much so. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Obviously you can still find a job in PHP. But in general, big corporations don't use it. Does your bank use PHP? &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;@&lt;A class="" href="http://twitter.com/zacharyjohnson" target=_blank mce_href="http://twitter.com/zacharyjohnson"&gt;zacharyjohnson&lt;/A&gt; - Are you sure you know the definition of "agnostic"? I'm stating facts, not opinions. I love both. &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Last tweet. There's more than plenty to go around. Many successful companies use PHP. But, from my experiences, the majority of them don't &lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;I'm sorry I brought it up. I never said that big companies don't use PHP. These are just statistics that I'm reciting. I love PHP too! &lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;LOL!&lt;/P&gt;
&lt;P&gt;To read the responses from other Twitterers which NETTUTS was reacting to, check out this search for replies posted the same day:&lt;/P&gt;
&lt;P&gt;&lt;A title=http://search.twitter.com/search?max_id=1143018072&amp;amp;page=1&amp;amp;q=%40nettuts href="http://search.twitter.com/search?max_id=1143018072&amp;amp;page=1&amp;amp;q=%40nettuts" mce_href="http://search.twitter.com/search?max_id=1143018072&amp;amp;page=1&amp;amp;q=%40nettuts"&gt;&lt;/A&gt;&lt;A class="" title=http://search.twitter.com/search?q=&amp;amp;ands=&amp;amp;phrase=&amp;amp;ors=&amp;amp;nots=&amp;amp;tag=&amp;amp;lang=en&amp;amp;from=&amp;amp;to=&amp;amp;ref=nettuts&amp;amp;near=&amp;amp;within=15&amp;amp;units=mi&amp;amp;since=2009-01-23&amp;amp;until=2009-01-23&amp;amp;rpp=50 href="http://search.twitter.com/search?q=&amp;amp;ands=&amp;amp;phrase=&amp;amp;ors=&amp;amp;nots=&amp;amp;tag=&amp;amp;lang=en&amp;amp;from=&amp;amp;to=&amp;amp;ref=nettuts&amp;amp;near=&amp;amp;within=15&amp;amp;units=mi&amp;amp;since=2009-01-23&amp;amp;until=2009-01-23&amp;amp;rpp=50" target=_blank mce_href="http://search.twitter.com/search?q=&amp;amp;ands=&amp;amp;phrase=&amp;amp;ors=&amp;amp;nots=&amp;amp;tag=&amp;amp;lang=en&amp;amp;from=&amp;amp;to=&amp;amp;ref=nettuts&amp;amp;near=&amp;amp;within=15&amp;amp;units=mi&amp;amp;since=2009-01-23&amp;amp;until=2009-01-23&amp;amp;rpp=50"&gt;http://search.twitter.com/search?q=&amp;amp;ands=&amp;amp;phrase=&amp;amp;ors=&amp;amp;nots=&amp;amp;tag=&amp;amp;lang=en&amp;amp;from=&amp;amp;to=&amp;amp;ref=nettuts&amp;amp;near=&amp;amp;within=15&amp;amp;units=mi&amp;amp;since=2009-01-23&amp;amp;until=2009-01-23&amp;amp;rpp=50&lt;/A&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Being on the Expression Web team, although I work at Microsoft, I could care less whether you choose PHP or ASP.NET since Expression Web supports both PHP and ASP.NET anyway!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9373200" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web/default.aspx">Expression Web</category><category domain="http://blogs.msdn.com/anna/archive/tags/tutorials/default.aspx">tutorials</category><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx">Expression Web 2</category><category domain="http://blogs.msdn.com/anna/archive/tags/PHP/default.aspx">PHP</category><category domain="http://blogs.msdn.com/anna/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Better error messages “are recommended”</title><link>http://blogs.msdn.com/anna/archive/2009/01/02/better-error-messages-are-recommended.aspx</link><pubDate>Sat, 03 Jan 2009 03:18:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9269886</guid><dc:creator>Anna</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/anna/comments/9269886.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=9269886</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=9269886</wfw:comment><description>&lt;p&gt;A code error tip in Expression Web:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;“The World-Wide-Web Consortium now regards the attribute ‘[&lt;em&gt;html attribute name&lt;/em&gt;]’ as outdated. Newer constructs are recommended.”&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Newer constructs are recommended? Who talks like that?! With all due respect, some developers talk like that, that’s who. Technical writers are typically responsible for grooming the text that appears in the user interface of a software program, but sometimes there’s just not enough time to do a quality check of UI text and so we may end up with error messages like that one.&lt;/p&gt;  &lt;p&gt;That quoted text appears in a floating tip in the Code view in Expression Web when your web page contains a particular HTML Incompatibility error. When you encounter that tooltip, all you need to know is that you should be using CSS instead of the HTML attribute that Expression Web is flagging. I have never encountered that tooltip in any other scenario and offhand can’t think of another scenario where this tip would be appropriate. So just remember, when you see the tooltip “Newer constructs are recommended”, think CSS!&lt;/p&gt;  &lt;p&gt;Perhaps we should change the tooltip to:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;“This attribute has been &lt;a href="http://www.w3.org/conform.html#deprecated"&gt;deprecated&lt;/a&gt; in favor of style sheets...”&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;That’s actually a quote from the W3C’s website, in their entry for the bgcolor attribute: &lt;a title="http://www.w3.org/TR/html401/present/graphics.html#adef-bgcolor" href="http://www.w3.org/TR/html401/present/graphics.html#adef-bgcolor"&gt;http://www.w3.org/TR/html401/present/graphics.html#adef-bgcolor&lt;/a&gt; .&lt;/p&gt;  &lt;h2&gt;HTML Incompatibility errors&lt;/h2&gt;  &lt;p&gt;So what’s an HTML Incompatibility error? It’s code in your page that doesn’t comply with the guidelines set by the DOCTYPE of your page. (For more info about DOCTYPES, check out this recent blog post by Michelle Rosenthal: &lt;a title="http://blogs.msdn.com/xweb/archive/2008/12/17/the-quirkiness-of-quirks-mode.aspx" href="http://blogs.msdn.com/xweb/archive/2008/12/17/the-quirkiness-of-quirks-mode.aspx"&gt;http://blogs.msdn.com/xweb/archive/2008/12/17/the-quirkiness-of-quirks-mode.aspx&lt;/a&gt; .)&lt;/p&gt;  &lt;p&gt;When your web page has an HTML Incompatibility error, the following happens in Expression Web:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;The errant code appears with a red squiggly line underneath it in the Code view of your page. For example, look at the line under &lt;strong&gt;bgcolor=”aqua”&lt;/strong&gt; in this screenshot:      &lt;br /&gt;&lt;img title="HTML Incompatibility error underlined in code" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="29" alt="HTML Incompatibility error underlined in code" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_22.png" width="165" border="0" /&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;When you move your cursor over the errant code, a floating message (aka “tooltip”) appears with some advice, like so:     &lt;br /&gt;      &lt;br /&gt;&lt;img title="HTML Incompatility error&amp;#39;s tooltip" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="31" alt="HTML Incompatility error&amp;#39;s tooltip" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_21.png" width="504" border="0" /&gt;       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;When an open page contains an HTML Incompatibility error, the following icon appears in the status bar along the bottom of the program:     &lt;br /&gt;      &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_4.png"&gt;&lt;img title="HTML Incompatibility icon" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="26" alt="HTML Incompatibility icon" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_thumb_1.png" width="26" border="0" /&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;In addition to those alerts for an open page, you can check your entire website or specified pages for errors by using the Compatibility Checker which is available on the Tools menu:   &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="325" alt="image" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_17.png" width="240" border="0" /&gt;     &lt;br /&gt;    &lt;br /&gt;After you click on&amp;#160; Tools &amp;gt; Compatibility Reports, the Compatibility Checker dialog box appears:&lt;/p&gt;  &lt;p&gt;&lt;img title="Compatibility Checker dialog box" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="264" alt="Compatibility Checker dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_18.png" width="493" border="0" /&gt;&amp;#160; &lt;br /&gt;After you click the Check button in the Compatibility Checker dialog box, the Compatibility task pane lists all the HTML Compatibility problems, CSS Compatibility problems, and also Code Errors of the pages you checked:    &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_12.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="114" alt="image" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/Newerconstructsarerecommended_10253/image_thumb_5.png" width="504" border="0" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;It’s a mighty fine tool to run on your website before you unleash your site on the world. But the tool isn’t very useful if you don’t know how to fix the problems that Expression Web has identified for you – a problem that inspired me to write this post.&lt;/p&gt;  &lt;p&gt;There are plenty of other tooltips that appear in Code view when your page contains a code error (code that’s highlighted in color) or code that’s incompatible with the DOCTYPE of your page, and which you may find difficult to decipher. If you encounter any you need help with, comment on this post or send me an email and I’ll do my best to decrypt it for you. For code errors, you’ll need to share the code for your entire page because often the code that is flagged isn’t the problem, it’s code that precedes it that is causing a confusing domino effect!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9269886" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web/default.aspx">Expression Web</category><category domain="http://blogs.msdn.com/anna/archive/tags/CSS/default.aspx">CSS</category><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx">Expression Web 2</category></item><item><title>Who's editing your CSS?</title><link>http://blogs.msdn.com/anna/archive/2008/06/22/who-s-editing-your-external-css.aspx</link><pubDate>Mon, 23 Jun 2008 05:21:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8640859</guid><dc:creator>Anna</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/anna/comments/8640859.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=8640859</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=8640859</wfw:comment><description>&lt;P&gt;The vast majority of front end web developers that I've met prefer to write their own markup in the code editor rather than let the program generate the markup for them. In fact, it's a point of pride to hand code because WYSIWYG programs have gotten a reputation for bloated code, mangled tags, and undesirable formatting. Of course this was never the case with Expression Web (for reals!) but once you've been burned by any markup generator, it's hard to trust any program with your code.&lt;/P&gt;
&lt;P&gt;So when does Expression Web touch your CSS and how can you take control of it (or avoid it all together)? Come, let me show you the ways...&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A class="" title=when name=when&gt;&lt;/A&gt;WHEN&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Expression Web generates CSS for you &lt;U&gt;&lt;STRONG&gt;only&lt;/STRONG&gt;&lt;/U&gt; when you:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use the &lt;STRONG&gt;formatting buttons in the toolbars&lt;/STRONG&gt;, for example, these buttons in the Common toolbar: 
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=47 alt="some formatting buttons on the Common toolbar" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/formatting_toolbar_thumb_1.png" width=298 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/formatting_toolbar_thumb_1.png"&gt;&lt;/P&gt;&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Use the &lt;STRONG&gt;formatting options in dialog boxes&lt;/STRONG&gt;, for example, the Paragraph dialog box that appears when you choose Format &amp;gt; Paragraph: 
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=418 alt="Paragraph dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_4.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_4.png"&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Drag in Design view to set the margins, padding, or dimensions&lt;/STRONG&gt; of an element, as in the following screenshot in which I'm dragging the shaded area below a heading to set the margin-bottom of the heading: 
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=228 alt="dragging in Design view to set margin-bottom property" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_5.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_5.png"&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Use the &lt;STRONG&gt;New Style&lt;/STRONG&gt; or &lt;STRONG&gt;Modify Style&lt;/STRONG&gt; dialog box: 
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=383 alt="Modify Style dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb.png"&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Use the &lt;STRONG&gt;CSS Properties&lt;/STRONG&gt; task pane, &lt;STRONG&gt;Apply Styles&lt;/STRONG&gt; task pane, or &lt;STRONG&gt;Manage Styles&lt;/STRONG&gt; task pane: 
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=497 alt="CSS Properties task pane" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_1.png" width=250 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_1.png"&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;When you use the features I listed in #4 - 5 (New Style dialog, Modify Style dialog, CSS Properties task pane, Apply Styles task pane, Manage Styles task pane), you are essentially writing CSS by hand, just like in the code editor, and generating whatever CSS you specify. But when you use features #1 - 3 (buttons in toolbar, property dialogs, and setting properties directly in Design view), the CSS that Expression Web generates is subject to options you set in the program.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WHAT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So what kind of CSS does Expression Web generate when you use features #1 - 3? By default, either an inline style or a class, according to the current settings on the CSS tab in the Page Editor Options dialog box (Tools &amp;gt; Page Editor Options):&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=426 alt=image src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_6.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_6.png"&gt;&lt;/P&gt;
&lt;P&gt;The one exception is the "Page properties on the &amp;lt;body&amp;gt; tag" option, which you can set to either inline styles or "rules". "Rules" means the program will generate a style that uses a tag selector, i.e. the &lt;STRONG&gt;body&lt;/STRONG&gt; tag will be the style's selector. (Note to self, file a suggestion to relabel "rules" to something more meaningful!)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So where does Expression Web place the styles that the program generates for you when you use features #1 - 3? By default, Expression Web is set to Auto mode (aka Auto Style Application mode). In Auto mode, new styles that Expression Web generates are placed in an embedded style sheet in the head of the page.&lt;/P&gt;
&lt;P&gt;What if you want Expression Web to put the new styles in the external CSS file that is attached to your page? I hear a lot of requests for that behavior (and want it myself!) but with versions 1 and 2 of Expression Web there is no way to have new auto-generated styles automatically appear in the external CSS. Keep in mind that this only applies to NEW styles that Expression Web &lt;STRONG&gt;automatically generates for you&lt;/STRONG&gt; when you use features #1 - 3. In contrast, new styles that you create from scratch through the New Style dialog box are written wherever you specify, which can be the current page, a new style sheet, or an existing style sheet that's attached to the current page:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=99 alt="Define In drop down menu in New Style dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/define_in_thumb.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/define_in_thumb.png"&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=387 alt="New Style dialog box" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_7.png" width=404 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_7.png"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;REUSE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So what do you do if you don't want Expression Web to generate a new style and instead want the program to update an existing style whenever you do anything with features #1 - 3? In that case, use Manual mode (aka Manual Style Application mode). In Manual mode, you can have Expression Web target an existing style that's in either your embedded style sheet or an external CSS file that's attached to the page, provided the style already targets the current element.&lt;/P&gt;
&lt;P&gt;To turn on Manual mode, open a page, then go to the status bar at the bottom of the program window, right-click Style Application, point to Mode, and select Manual.&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=122 alt="Style Application mode menu in the status bar" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/manual_thumb.png" width=245 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/manual_thumb.png"&gt; &lt;BR&gt;&lt;/P&gt;
&lt;P&gt;(Or choose Tools &amp;gt; Page Editor Options, click the CSS tab, and select the Manual Style Application option, and click OK.)&lt;/P&gt;
&lt;P&gt;I'll show you how this works using my previous example of dragging in Design view to set the bottom-margin of my heading (h1). &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MANUAL STYLE APPLICATION MODE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;With the Style Application set to Manual, and my heading (H1) selected in my page, the Style Application toolbar looks like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=31 alt="Style Application toolbar set to Manual mode" src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_3.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/image_thumb_3.png"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the program is in Manual Style Application mode, the critical option in the Style Application toolbar is the Target Rule setting. Whatever style is selected in the Target Rule option is the style that Expression Web updates when you use any of the features I described in #1 - 3. For example, with my h1 selected in my page, by default the style named &lt;STRONG&gt;#column_l h1&lt;/STRONG&gt; is selected for the Target Rule. That style is selected by default because it has the highest precedence of all the styles that affect the selected h1. If I use any of the features #1 - 3 while that h1 is selected, the style &lt;STRONG&gt;#column_l h1&lt;/STRONG&gt; is updated.&lt;/P&gt;
&lt;P&gt;If I want Expression Web to update a different style when I use features #1 - 3 while that h1 is selected, all I need to do is click the Target Rule drop down and select the style I want to update or the type of new style I want created for me. For example, the Target Rule drop down menu lets me select a style named &lt;STRONG&gt;#container h1&lt;/STRONG&gt;, a style named &lt;STRONG&gt;h1&lt;/STRONG&gt;, or I can choose to have Expression Web create either a new class or inline style, or I can launch the New Style dialog box to create a new style from scratch myself:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=158 alt=styleapp_targetrule src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/styleapp_targetrule_thumb.png" width=400 border=0 mce_src="http://blogs.msdn.com/blogfiles/anna/WindowsLiveWriter/EditingyourexternalCSS_1105C/styleapp_targetrule_thumb.png"&gt; &lt;/P&gt;
&lt;P&gt;In my current example, the styles happen to be in the style sheet embedded in the current page (hence why "Current Page" appears next to each style in the Target Rule drop down menu). If they were in the external CSS attached to my page, the style sheet's name would appear next to the style instead of "Current Page" and I could still target those styles if I desired.&lt;/P&gt;
&lt;P&gt;New users of Expression Web seem to set the program to Manual style application mode because they're under the impression that this mode means that the program will not automatically generate any CSS for them; in fact, Manual mode simply means you can make Expression Web target existing styles that affect the current element instead of generating new styles by default. (Anecdote: during the development of Expression Web version 1, I anticipated that folks would interpret the label "Manual" incorrectly and so suggested it be labeled "Semi-Auto" instead, but that suggestion was rejected in small part because it brings to mind &lt;STRONG&gt;semi-auto&lt;/STRONG&gt;matic weapons. :)&amp;nbsp; Regardless, I still think the label would be more meaningful and accurate if changed to Semi-Auto.) &lt;/P&gt;
&lt;P&gt;To all of you that prefer to generate your CSS by hand, all you need to do is stay away from features #1 - 3 when using Expression Web and you can rest assured that your CSS is all under your control; just stick to using features #4 - 5 as well as, obviously, a page's Code view editor and the code view of a CSS file. For the rest of you, I hope this post helps illuminate how Expression Web generates CSS for you and the options available to you in the program. So who's editing your CSS? If you're using Expression Web, the options I breezed over in this post ensure YOU are in control of your CSS.&lt;/P&gt;
&lt;P&gt;BTW, this post was inspired by Expression Web forum user Bruno Nepomuceno who started a thread to&amp;nbsp;ask how to make Expression Web target his external CSS...thanks Bruno!&lt;/P&gt;
&lt;P&gt;&lt;A title=http://forums.expression.microsoft.com/en-US/web/thread/73c28363-7f12-497f-94e2-aaa04abe904d href="http://forums.expression.microsoft.com/en-US/web/thread/73c28363-7f12-497f-94e2-aaa04abe904d" mce_href="http://forums.expression.microsoft.com/en-US/web/thread/73c28363-7f12-497f-94e2-aaa04abe904d"&gt;http://forums.expression.microsoft.com/en-US/web/thread/73c28363-7f12-497f-94e2-aaa04abe904d&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8640859" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web/default.aspx">Expression Web</category><category domain="http://blogs.msdn.com/anna/archive/tags/CSS/default.aspx">CSS</category><category domain="http://blogs.msdn.com/anna/archive/tags/tutorials/default.aspx">tutorials</category><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx">Expression Web 2</category></item><item><title>plates overflowing with CSS</title><link>http://blogs.msdn.com/anna/archive/2008/03/04/overflowing-plates.aspx</link><pubDate>Wed, 05 Mar 2008 10:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8047624</guid><dc:creator>Anna</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/anna/comments/8047624.aspx</comments><wfw:commentRss>http://blogs.msdn.com/anna/commentrss.aspx?PostID=8047624</wfw:commentRss><wfw:comment>http://blogs.msdn.com/anna/rsscomments.aspx?PostID=8047624</wfw:comment><description>&lt;P&gt;I think I'm the only person at Microsoft who brings her own plate to the cafeterias on campus here in Redmond. I've gotten a lot of positive encouragement from other people who notice me and my plate, but I've yet to see anyone else doing this in my two years here. I do this because in many ways, including aesthetically, it's more pleasurable to eat off a ceramic plate than a styrofoam plate, and more importantly, because it's less wasteful. Bringing my own plate to work is a good habit I got into while working at Adobe in Seattle, after seeing a few guys doing this there.&lt;/P&gt;
&lt;P&gt;And I don't bring just any ol' plate...I bring a nice green ceramic plate that's divided like a tv dinner plate is (complete with a little circle to put&amp;nbsp;the matching&amp;nbsp;drinking cup on) and that was designed by &lt;A class="" title="Biography of Belle Kogan" href="http://www.idsa.org/whatsnew/sections/dh/personal_rec_awards/1994_Kogan.html" target=_blank mce_href="http://www.idsa.org/whatsnew/sections/dh/personal_rec_awards/1994_Kogan.html"&gt;Belle Kogan&lt;/A&gt;.&amp;nbsp;Here's an image of my plate, waiting for its grilled tofu salad at my favorite Microsoft cafeteria:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Belle Kogan tv dinner plate" style="WIDTH: 400px; HEIGHT: 533px" height=533 alt="Belle Kogan tv dinner plate" src="http://blogs.msdn.com/photos/posts/images/8047697/original.aspx" width=400 mce_src="http://blogs.msdn.com/photos/posts/images/8047697/original.aspx"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;I started working at Microsoft in January of 2006, and so I estimate that by bringing my own plate to the cafeteria, I've avoided using 490 disposable styrofoam plates! Four hundred and ninety styrofoam plates!&amp;nbsp; What do 490 styrofoam plates look like? Well, I wish I had an image to show you that's&amp;nbsp;as impressive as the photographs of &lt;A class="" title="Chris Jordan's photographic series: Running the Numbers, An American self portrait" href="http://www.chrisjordan.com/current_set2.php?id=7" target=_blank mce_href="http://www.chrisjordan.com/current_set2.php?id=7"&gt;Chris Jordan&lt;/A&gt;,&amp;nbsp;but what I can do is show you a stack of 70 styrofoam plates that I photographed at the cafeteria and then cloned 7 times in Photoshop. &lt;/P&gt;
&lt;P mce_keep="true"&gt;Rather than make you scroll the entire web page to view the image, I've instead used&amp;nbsp;the &lt;A class="" title="Beta version of Expression Web 2" href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta" target=_blank mce_href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta"&gt;BETA version&amp;nbsp;of Expression Web &lt;SPAN style="FONT-SIZE: 1.25em"&gt;2&lt;/SPAN&gt; &lt;/A&gt;to put the image into a &lt;STRONG&gt;&amp;lt;div&amp;gt;&lt;/STRONG&gt; container, set the height of the div to a much shorter height than the image, and then set the CSS&amp;nbsp;&lt;STRONG&gt;overflow&lt;/STRONG&gt; property to &lt;STRONG&gt;scroll.&lt;/STRONG&gt;&amp;nbsp;The scroll value masks out the areas of the image that extend beyond the div's dimensions and provides scroll bars so users can scroll the div container without&amp;nbsp;having to&amp;nbsp;scroll the entire web page. &lt;/P&gt;
&lt;P mce_keep="true"&gt;Here it is in action...scroll baby scroll! &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="OVERFLOW: scroll; WIDTH: 450px; HEIGHT: 375px; BACKGROUND-COLOR: #ffffff; TEXT-ALIGN: center"&gt;&lt;IMG height=2109 alt="490 styrofoam plates" src="http://blogs.msdn.com/photos/posts/images/8047665/original.aspx" width=400 mce_src="http://blogs.msdn.com/photos/posts/images/8047665/original.aspx"&gt;&lt;/DIV&gt;
&lt;P&gt;Now if you setup your own overflowing div in the first version of Expression Web, you'll discover that the Design view does not&amp;nbsp;render the overflow property correctly. To see the results, you had to preview your page in&amp;nbsp;a browser that supports the property. I'm pleased to report that the&amp;nbsp;Design view of&amp;nbsp;&lt;A class="" title="Beta of Expression Web 2" href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta" target=_blank mce_href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta"&gt;Expression Web &lt;SPAN style="FONT-SIZE: 1.25em"&gt;2&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; does properly render the overflow property.&lt;/P&gt;
&lt;P&gt;Here's how to setup an overflowing div like my example above using any tool you want:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Put your content (image, text, whatever you want...) between a set of &amp;lt;div&amp;gt; &amp;lt;/div&amp;gt; tags. &lt;BR&gt;Tip for Expression Web users: if the content is already in your page, and you need to wrap the content with a set of &amp;lt;div&amp;gt; &amp;lt;/div&amp;gt; tags, then with your content selected,&amp;nbsp;press CTRL + Q to open the Quick Tag Editor, and type &amp;lt;div&amp;gt; and click the Enter button.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Use CSS to set the width and height of the div to the desired dimensions. For example, here's an inline style applied to a div: &amp;lt;div style="width: 450px; height: 375px;"&amp;gt; .&lt;BR&gt;&lt;BR&gt;To set these dimensions in the Design view of Expression Web, click the &lt;STRONG&gt;&amp;lt;div&amp;gt;&lt;/STRONG&gt; tag in the quick tag selector bar that lies along the top of your page (see image that follows&amp;nbsp;)...this makes sure your &amp;lt;div&amp;gt; tag is selected and not your &amp;lt;img&amp;gt; tag - very important! And then to set the width of the div,&amp;nbsp;drag the square handle (see image that follows)&amp;nbsp;that's in the middle of the right edge of the div, and then to set the height, drag the square handle that's in the middle of the bottom edge of the div. Again, it's important that you do this while the div is selected, otherwise you'll resize the image instead. And it's very important to drag the handle of a side and not to drag the edge on either side of the handle...if you drag the edge then you'll set the margin of the div&amp;nbsp;instead of the dimension.&lt;BR&gt;&lt;IMG title="dragging in Design view to set the div's dimensions" style="WIDTH: 400px; HEIGHT: 182px" height=182 alt="dragging in Design view to set the div's dimensions" src="http://blogs.msdn.com/photos/posts/images/8048974/original.aspx" width=400 mce_src="http://blogs.msdn.com/photos/posts/images/8048974/original.aspx"&gt; 
&lt;P&gt;After you've set the size of the div so that it's smaller than your content, the Design view of your page&amp;nbsp;will show the content extending out of,&amp;nbsp;or overflowing, the div like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Design view showing content overflowing out of a div" style="WIDTH: 400px; HEIGHT: 672px" height=672 alt="Design view showing content overflowing out of a div" src="http://blogs.msdn.com/photos/posts/images/8049128/original.aspx" width=400 mce_src="http://blogs.msdn.com/photos/posts/images/8049128/original.aspx"&gt;&lt;BR&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Now to mask the photograph so that you can only see the portion of it that is showing within the outline of the div, you need to add the &lt;STRONG&gt;overflow&lt;/STRONG&gt; property to&amp;nbsp;the style you've applied to your&amp;nbsp;div, and set the property's value to &lt;STRONG&gt;scroll&lt;/STRONG&gt; (or to "hidden" if you don't want to provide the user with the option to scroll in the div). To do this in Expression Web, select your div, and then in the &lt;STRONG&gt;CSS Properties&lt;/STRONG&gt; task pane, with the inline style (or your own style) selected under &lt;STRONG&gt;Applied Rules&lt;/STRONG&gt; in the task pane, locate the &lt;STRONG&gt;overflow&lt;/STRONG&gt; property and set it to &lt;STRONG&gt;scroll&lt;/STRONG&gt;.&lt;BR&gt;&lt;BR&gt;&lt;IMG title="overflow property in the CSS Properties task pane" style="WIDTH: 227px; HEIGHT: 433px" height=433 alt="overflow property in the CSS Properties task pane" src="http://blogs.msdn.com/photos/posts/images/8049302/original.aspx" width=227 mce_src="http://blogs.msdn.com/photos/posts/images/8049302/original.aspx"&gt;&lt;BR&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;With the overflow property set to scroll, the Design view in &lt;A class="" title="BETA version of Expression Web 2" href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta" target=_blank mce_href="http://www.microsoft.com/expression/products/download.aspx?key=web2beta"&gt;Expression Web &lt;SPAN style="FONT-SIZE: 1.25em"&gt;2&lt;/SPAN&gt;&lt;/A&gt; masks the area of the photograph that goes beyond the area of the div and shows a scroll bar. The&amp;nbsp;scrollbars don't function in Expression Web...you'll have to preview in your browser to test those out. And the Design view shows an outline of whatever content is overflowing outside of your div. For example, look at the white vertical lines extending downward below the selected div...those lines represent the photograph that is being masked by the div.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Design view showing div with overflow property set to scroll" style="WIDTH: 400px; HEIGHT: 505px" height=505 alt="Design view showing div with overflow property set to scroll" src="http://blogs.msdn.com/photos/posts/images/8049446/original.aspx" width=400 mce_src="http://blogs.msdn.com/photos/posts/images/8049446/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Power Expression Web user tip:&lt;/STRONG&gt;&amp;nbsp;If you want to avoid inline styles, such as the inline style that was created and applied to the div when you dragged the edges of&amp;nbsp;the div in Design view, then change your CSS settings in the Page Editor Options like this:&amp;nbsp;choose &lt;STRONG&gt;Tools&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Page Editor Options&lt;/STRONG&gt;. In the Page Editor Options dialog box, click the &lt;STRONG&gt;CSS&lt;/STRONG&gt; tab, and change the &lt;STRONG&gt;Sizing, positioning, and floating&lt;/STRONG&gt; option to &lt;STRONG&gt;CSS (classes)&lt;/STRONG&gt;. Then next time you drag the square handles of a selected element in Design view, Expression Web will generate a class for you instead of an inline style.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8047624" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/anna/archive/tags/CSS/default.aspx">CSS</category><category domain="http://blogs.msdn.com/anna/archive/tags/tutorials/default.aspx">tutorials</category><category domain="http://blogs.msdn.com/anna/archive/tags/Expression+Web+2/default.aspx">Expression Web 2</category><category domain="http://blogs.msdn.com/anna/archive/tags/BETA/default.aspx">BETA</category></item></channel></rss>