Welcome to MSDN Blogs Sign in | Join | Help

I've been reading a lot about CSS3 lately, where it's going and all the cool stuff I can't wait for browsers to implement. My personal favorite at the moment is the ability to easily use graphics for borders. Say I want to go crazy with my borders and create something like this:

This is my spiffy box with any graphic border I want.

To give you an idea of how we'd have to do that in CSS 2 world you would need eight individual images, and a big honkin' code block like this.

xhtml

<div id="mycontent">
  <div class="tb"></div>
  <div class="bb"></div>
  <div class="lb"></div>
  <div class="rb"></div>
  <div class="trc"></div>
  <div class="tlc"></div>
  <div class="brc"></div>
  <div class="blc"></div>
  <p>This is my spiffy box with any graphic border I want.</p>
</div>

CSS2

#mycontent {
  margin-left: 10px;
  position: relative;
  width: 200px;
  height: 140px;
  padding: 10px;
  float: left;
}
#mycontent .tb, #mycontent .bb {
  position: absolute;
  height: 10px;
  width: 200px;
}
#mycontent .lb, #mycontent .rb {
  position: absolute;
  height: 140px;
  width: 10px;
}
#mycontent .tb {
  background-image:url('images/top.png');
  top: 0;
  left: 10px;
}
#mycontent .lb {
  background-image:url('images/left.png');
  top: 10px;
  left: 0;
}
#mycontent .bb {
  background-image:url('images/right.png');
  left: 10px;
  bottom: 0;
}
#mycontent .rb {
background-image:url('images/bottom.png');
  top: 10px;
  right: 0;
}
#mycontent .trc, #mycontent .tlc, #mycontent .brc, #mycontent .blc {
  position: absolute;
  height: 10px;
  width: 10px;
  background-repeat: no-repeat;
}
#mycontent .trc {
  background-image:url('images/topright.png');
  right: 0;
  top: 0;
}
#mycontent .tlc {
  background-image:url('images/topleft.png');
  left: 0;
  top: 0;
}
#mycontent .brc {
  background-image:url('images/bottomright.png');
  right: 0;
  bottom: 0;
}
#mycontent .blc {
  background-image:url('images/bottomleft.png');
  left: 0;
  bottom: 0;
}
#mycontent p {
  margin: 10px;
}

Whew, that was an exhausting amount of typing, especially if you hunt and peck.

Additionally, problems with the above method abound. For one it's limited to fixed pixel sizes. So if your content starts pushing the height limits of its box it's not the easiest to fix.

Here's how it's improved in CSS3. Less code and only one image is needed.

xhtml

<div id="mycontentcss3">
  <p>This is my spiffy box with any graphic border I want.</p>
  <p>Only its CSS3 improved</p>
</div>

CSS3

#mycontentcss3 {
  margin-left: 10px;
  float: left;
  width: 180px;
  height: 120px;
  padding: 10px;
  border-width: 10px;
  border-image: url("images/polyborders.png") 10 10 10 10 repeat;
}
#mycontentcss3 p {
  margin: 0;
  margin-bottom: 10px;
}

Fingers are much less tired in the CSS 3 version.

If your browser has support for border-image the results below will match the top example. Otherwise you'll see a double blue border:

This is my spiffy box with any graphic border I want.

Only its CSS3 improved

The new CSS3 attribute border-image is where all the magic happens. To break down the anatomy of a border-image property it's as follows:

  1. url to the image you want to use for the border
  2. pixels to use from top of image for top border
  3. pixels to use from right of image for right border
  4. pixels to use from bottom of image for bottom border
  5. pixels to use from left of image for left border
  6. stretch, repeat or round

At first I was confused by the above too but it actually turns out to be really simple. Basically you create an image that looks like a mini version of your border box. My image was:

Polygon Borders

Then you specify in the 2-5 options above how many pixels you need from each edge to form your borders. It automatically does the intersections of the numbers to grab the correct corners. Then you tell it how it should render the border.

  • Stretch will take a single border edge and stretch its height or width to match the pixel dimensions you need.
  • Repeat will repeat the graphic over and over to fill the area.
  • Round will do almost the same as repeat only it will stretch the border segments individually so that you don’t have any one border graphic split in the middle.

Additionally, unlike the CSS2 border method this has no problem easily resizing and growing based on the content inside the bordered box.

As of July 2008, Safari and other webkit-based apps are the only browsers supporting it and you have to use the -webkit- prefix to get it. But fingers crossed we'll see other browsers hopping on board and be able to add this to our developer toolbelt.

Cheers.
Alex
Program Manager, Microsoft Expression Web

The free trial version of Expression Web 2 is described as a "30 day" free trial on the FAQ for Expression Web 2 and in one of the screens that appears during installation of the program. In theory, after 30 days have passed the program should not start unless you enter a product key that you've purchased.

In reality, the trial period ends and the trial program stops running at the end of the month that follows the month you installed the program. This means that if you download and install Expression Web 2 on July 1, 2008, the program won't expire until August 31, 2008, or 62 days later. If you install the program on July 31st, the program will also expire August 31...giving you only 32 days with the program. So if you want to get the most out of your free trial period, download the program at the start of the month!

After the trial version of Expression Web 2 expires, don’t forget that you can get the upgrade version for only $99 if you own any one of the following:

  • Licensed copy of an earlier version of Expression Web
  • Microsoft Office - any version
  • Microsoft FrontPage® - any version
  • Quark QuarkXPress - any version
  • Adobe Creative Suite - any version
  • Adobe/Macromedia Flash or Director - any version
  • Adobe/Macromedia Dreamweaver - any version
  • Adobe GoLive - any version

Anna

anna_head_greenbg100

Hello faithful readers!

What would you like to read more about on the Expression Web team blog?  Tutorials? Team profiles? Weather predictions? If you want more tutorial 'how to' content, what would you like to know more about? Let us know what you want to read more about by leaving a comment on this blog post or by sending us an email.

If we blog about something that you requested here, we'll send you some priceless swag...could be Expression Web-branded, Silverlight-branded, Zune-branded, or some other brand from Microsoft. (Just be sure to enter your email address when you post your comment or email so we can follow up with you!)

Anna

 Anna Ullrich

The Expression website was relaunched yesterday with a fresh new look and experience to coincide with the release of Expression Studio 2. Now you can get your hands on free trial versions of each program in Expression Studio 2 including Expression Web 2 or buy the program.

So what's new in Expression Web 2?

  • Efficiently edit your PHP pages with the robust set of PHP editing features, including PHP Include rendering in the design surface
  • Preview your PHP and ASP.NET pages in your browser with a single click of a button, using the built-in Expression Development Server
  • Import Photoshop .PSD files
  • Add Flash or Windows Media files to your pages, and enhanced ActiveX support
  • Drag and drop ASP.NET AJAX controls into your pages
  • Harness the power of ASP.NET 3.5
  • Work with custom ASP.NET controls, such as the controls in the ASP.NET AJAX Control Toolkit, simply by adding the controls to the BIN folder in your website
  • Accurate design view rendering of the CSS Overflow property, and support for the IE 7 CSS Schema
  • Enhanced FTP publishing
  • Improved prebuilt CSS page layouts
  • Byte order mark options
  • Support for Silverlight 1

You can buy the upgrade for version 2 for only $99 if you own any of the following:

  • Licensed copy of an earlier version of Expression Web
  • Adobe Creative Suite - any version
  • Adobe/Macromedia Flash or Director - any version
  • Adobe/Macromedia Dreamweaver - any version
  • Adobe GoLive - any version
  • Microsoft Office - any version
  • Microsoft FrontPage® - any version
  • Quark QuarkXPress - any version
  • Corel - any version

 Once you've installed Expression Web 2, discuss the program with others at the newish Expression Web forum., check out learning options at the newish Expression Community website, or checkout the newsgroup for Expression Web. And submit feedback at the Connect website for Expression.

Anna
 

Hewlett Packard is providing a free online training for Expression Web 1 (not version 2 of Expression Web) by Virginia O'Connor. Even though the course is for version 1 of Expression Web, I didn't see anything in the content that can't be applied to version 2.

The training consists of four lessons from May 8 - June 13th, 2008 and their website indicates the training materials will be taken down when the course ends so be sure to sign uo and get the content before June 13th, 2008.

Here's the course description from the HP website:

Building websites with Expression Web

This class covers the basics for creating a website with Microsoft's Expression® Web with features such as toolbars, formatting, page layouts and link creation. With this easy website creation software, you'll apply cascading style sheets, then learn how to create complex queries, how to configure the software for different browsers and how to create interactive web pages with ASP.NET 2.0 capabilities.

http://h30187.www3.hp.com/sessions/overview/p/courseSessionId/16257

Anna

anna_head_greenbg100

The April 2008 edition of the Expression newsletter was published today and contains no less than four articles directly related to Expression Web, including an interview with Eric Meyer who talks about CSS:

https://www.microsoft.com/expression/news-press/newsletter/2008-04/Default.aspx

The newsletter also contains articles on Deep Zoom and Silverlight 2.

To subscribe to the newsletter and receive it in email (approximately every 2 months), click here.

Anna
Anna Ullrich

For those of you that have been enjoying the trial version of Expression Web 1, but have been sitting on the fence about purchasing it ever since you saw the BETA of Expression Web 2 come out...well now you can safely commit to the purchase because version 2 will be provided to you for FREE if you buy Expression Web 1 sometime between February 24th and June 1st of 2008.

image

The Expression website now provides all of the pricing details for Expression Web 2, Expression Studio 2, and all Expression programs.

The details:

" If you purchase any Expression product between February 24th 2008 and June 1st 2008 you qualify for a free upgrade to version 2 of the same product (Web 2 for Web, Studio 2 for Studio, etc.). Details on how to get the upgrade will be published on the Expression website on May 1. Product registration and proof of purchase will be required. "

And just like before, you can get Expression Web for only $99 if you own any of the following:

  • Microsoft Office (any version)
  • Microsoft FrontPage (any version)
  • Adobe/Macromedia Creative Suite (any version)
  • Adobe/Macromedia Dreamweaver (any version)
  • Adobe/Macromedia Flash or Director (any version)
  • Adobe GoLive (any version)

And note that if you own the Academic version of a program, you will qualify for the upgrade price for the nonacademic version.

And here's another bonus tip that you will NOT find on the Expression website (at least not at the moment)...you can buy the upgrade version of Expression Media for only $99 if you own Expression Web. Why do you want to own Expression Media? For one thing, you can generate photo galleries for the web with the click of a button and create your own custom photo gallery templates with HTML and CSS. Expression Media also comes with Expression Encoder, which lets you create slide shows and deliver video for the web, and so much more. If all that is of interest to you, perhaps you should invest in the entire Expression Studio while you're at it!

Anna

anna_avatar

If you've been using FrontPage and are ready to embrace the world of standards-based web design with Expression Web, or if you're still unsure and need more convincing, PixelMill has created a helpful series of in-depth articles to help guide you on your way:

http://www.pixelmill.com/support/al1095.htm

Anna

 Anna Ullrich

We're pleased to let you know that Eric Meyer's CSS Sculptor for Expression Web is now available for purchase! The add-in works with Expression Web 1, the Expression Web 2 BETA, and will work with the final version of Expression Web 2 when it is released. See our earlier blog post about this add-in for more information about it.

You can quickly go to the product page for Eric Meyer's CSS Sculptor, as well as many other add-ins for Expression Web, by choosing Help > Extending Expression Web:

expressionweb_extending

The Extending Expression Web command takes you to the Add-ins web page for Expression Web at http://www.microsoft.com/expression/community/addin.aspx . ( WebAssist, the company behind Eric Meyer's CSS Sculptor, also provides the PayPal eCommerce Toolkit add-in and the Communication Toolkit for Skype add-in for Expression Web. )

If you're using Eric Meyer's CSS Sculptor for Expression Web, join a discussion about it in the new forum for Expression Web at http://forums.expression.microsoft.com/en-US/web/threads/ . Or talk to the man himself through his blog at http://meyerweb.com/eric/thoughts/2008/03/06/expressive-sculptor/ .

Anna

anna_head_greenbg100

Banner for Eric Meyer's CSS Sculptor 

We're excited to announce that Eric Meyer (http://meyerweb.com/ and http://www.complexspiral.com/), internationally recognized authority on HTML, CSS, and web standards, and author of some of the essential books on CSS (as if you didn't already know all that!), has released a pre-release version of his CSS Sculptor for Expression Web.

The CSS Sculptor for Expression Web helps you create custom web standards compliant, CSS-based layouts. Finally, you can confidently and resolutely abandon your antiquated table-based layouts and start churning out CSS layouts like nobody's business!

To work with the CSS Sculptor, close Expression Web (version 1, or version 2 BETA), download the CSS Sculptor installer, and then run the CSS Sculptor installer. Once the installation is done, start Expression Web (either version 1 or version 2 BETA), and you will have two new menu items. On the Insert menu, you will have a new WebAssist submenu, like this (shown in Expression Web 2 BETA):

Insert menu with WebAssist submenu in Expression Web 2 BETA

And on the File menu, you will have a new command named New CSS Sculptor Page, like this:

New CSS Sculptor Page on File menu

Keep an eye on this blog for another post in which we walk you through using this cool new tool! After you try the tool out, give Eric your feedback directly by commenting on his own blog post about this tool:

 http://meyerweb.com/eric/thoughts/2008/03/06/expressive-sculptor/

And join in a discussion about the tool, or seek out help or advice, on the new Expression Web forum:

http://meyerweb.com/eric/thoughts/2008/03/06/expressive-sculptor/
correction! The new forum for Expression Web is at: http://forums.expression.microsoft.com/en-US/web/threads/

And as always, let us know what you think!

Anna

Tyler Simpson, our Principal Test Manager, and Nishant Kothary, Expression Technical Evangelist, presented a lively talk and demonstration of Expression Web 2 at MIX 2008 earlier this week. The recording of the session is already available online:

http://sessions.visitmix.com/?selectedSearch=C04 

Here's the description from the MIX website:

Explore key features of Microsoft Expression Web through real-world scenario-based exercises focused around building a great blog template. The topics cover PHP support, Photoshop comp import workflow, CSS features, and more.

Let us know what you think!

Oh, and hey, have you had a chance to download the Expression Web 2 Beta yet? You haven't? Get on it then! PHP, AJAX, Custom ASP.NET controls, Photoshop support ...and more, await you here: http://www.microsoft.com/expression/products/download.aspx?key=web2beta

Expression Studio 2 BETA program icons

Building on the successful launch of Microsoft Expression Web and after listening closely to your feedback, we are excited to announce the release of Microsoft Expression Web 2 Beta. This Beta release expands your toolset beyond HTML, CSS, and JavaScript, by putting PHP, Silverlight, and ASP.NET AJAX within your reach.

Stacked with new features, Expression Web 2 provides essential tools to design standards-based websites. Web professionals can now author websites on the PHP platform more efficiently with features such as PHP syntax highlighting and statement completion (IntelliSense). Additionally for PHP, we provide an elegant solution that current Expression Web users rave about for previewing ASP.NET pages: Expression Web 2 lets you preview PHP pages locally without a separate development web server! Expression Web 2 supports interactive web content such as Silverlight and Flash, enabling you to easily include this content in your sites. Improved workflow enables you to import Adobe Photoshop designs into your sites with layer visibility control, and reimport changes with layer settings retained. New and enhanced productivity features boost your performance!

Please install the Expression Web 2 Beta, and let us know what you think!

Note: You can safely install the BETA of Expression Web 2 on a computer that also has Expression Web 1 on it. If you participated in a private preview program for Expression Web 2, you should uninstall the private preview version of Expression Web 2 before you install the BETA version.

To download and install the Expression Web 2 Beta, click here.

To submit suggestions and bugs, click here.

To discuss the Beta with others, go to the NEW discussion forums here.

To download other Expression BETA 2 programs, click here.

The Expression team has launched a new Community website where you can learn, share, and be inspired.

 Join us!

http://expression.microsoft.com

screenshot of Expression Community homepage

Four members of the Expression Web team are headed to MIX 2008 in Las Vegas, and would like to meet up with anyone who will also be there. Please comment on this post if you'd like to get together and chat with us...we'd love to hear from you.

MIX 08 bling tag - I'm speaking at MIX 08Tyler Simpson, our Principal Test Manager, will be leading a session at MIX with Nishant Kothary titled "Microsoft Expression Web: From Comp, to CSS, to Code!". They'll be showing how they designed a WordPress blog template with Expression Web for Nishant's Rainy Pixels blog - http://www.rainypixels.com/ . Here's the session's description from the MIX 08 website:

"Explore key features of Microsoft Expression Web through real-world scenario-based exercises focused around building a great blog template. The topics cover PHP support, Photoshop comp import workflow, CSS features, and more."

Visit the MIX 08 sessions page to get the location and time of this and other sessions:
https://content.visitmix.com/public/sessions.aspx

If you're not going to MIX, you'll be glad to know that the Tyler and Nishant's session will be recorded and available on the MIX website after MIX. We'll blog about it once the recording is available.

Again, if you're going to MIX, let's get together!

The Expression family of products has new and greatly improved discussion forums:

http://forums.expression.microsoft.com

The new forums have many new features including a tag cloud, user avatars, richer ux, and official forum moderators from each product team.

The previous discussion forums (http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.expression.webdesigner&cat=&lang=en&cr=US) will remain open and available while its threads are ported over to the new forums. But please use the NEW forums instead.

 Join us!

More Posts Next page »
 
Page view tracker