CSS Expression Web Tutorials

Designing a WordPress Blog Theme Using Expression Web

I’ve been working with Expression Web for about 6 months now and I’ve found that above all other things, what sets this program apart from the competition is it’s handling of CSS. More specifically how easy it is to not only write CSS from scratch but also to modify existing code for fantastic results. Case in point: The new look of this blog. If you’ve visited before you’ll notice that I recently upgraded it from the dull look of a standard WordPress blog to something altogether different. And what will (hopefully) surprise you is that once the design was conceived (which took some time) the actual coding only took a couple of hours! All this thanks to Expression Web and how it handles CSS code.


People often ask me how to make their WordPress blog look great. In the past I’ve always told them that it’s a lengthy process and you really need to know a lot of code to get to where you want to be. That’s just not the case any more. I am willing to go as far as saying that with some basic training and a rudimentary understanding of html, anyone can make significant and functional changes to their blog using Expression Web without ever knowing what CSS is and how it works (this technique will work on any blog or other website that uses CSS btw.)Rather than just blabbering on and on about how great this program is for designing and re-designing blogs (and no, I’m not on the Microsoft payroll even though I’d like to be – hint hint people!) I’m going to show you just how easy it is to make changes to your blog by tweaking the CSS code with Expression Web.

DISCLAIMER: Although altering CSS code in Expression Web is very easy, it doesn’t mean that the end result will be very attractive. For that you need an eye for design. So even though you follow my instructions to the letter, there is no guarantee that your blog will look any better. I’m just giving you the tools: It’s your job to bring the creativity. Not everyone is a designer. Harsh, but true.

Step 1: Set up a blog with editable CSS

There are two main ways to set up a blog: You can get one for free at, or any number of other places. Just make sure you are free to edit the CSS through the service. I know allows you to do this, I’m not sure about the others. Or you can host one yourself. As far as I know, the most popular blogging software out there is WordPress, but there are others that work just as well. The good thing about WordPress is that it’s 100% free, constantly improved and that there are thousands of great plug-ins and other goodies to make it more interesting. The advantage of hosting a blog yourself is that you have complete control over the content and that you have your own domain name rather than something like

Step 2: Design your blog visually

This is by far the most important and time consuming step. The only way to make your blog stand out visually is to make it look good. And the only way to make it look good is by having a great design concept. I can’t tell you how to do this; it’s like painting a picture or writing a poem – creative work defies explanation. What I usually do is I write down some words that describe what I want to convey in terms of emotion, “feel” and so on. Once I have a general idea I play around with colour combinations in Kuler and find something that fits. Then I look for inspiration and start sketching things out on paper. Finally I consolidate all my ideas into an actual image of what the final product should look like in a program like Expression Design. For this blog I used Adobe Illustrator, Adobe Photoshop and Expression Design to create the final graphical representation of the blog. If you want anything more than just simple boxes and colours, this step is vital.

Step 3: Find a theme that fits your vision

Blogs work on two planes: PHP on one side and CSS on the other. The PHP portion for the most part decides what content is displayed and the CSS side decides how this content is displayed. But the PHP portion also has an impact on how the content is displayed because it decides where different elements appear like if the sidebar should be on the left or the right, whether the menu is vertical or horizontal etc. If you intend to build your new blog from scratch and you don’t know PHP well, this can be a grueling process. Fortunately much of the work has already been done for you by others. (I have to tread lightly here because what I’m about to say might sound like blatant plagiarism.)

Rather than building your theme from scratch, try to find one that has the basic components you are looking for already laid out. In most cases one of the standard themes have everything you need and if not you are almost certain to find one that does. So rather than reinventing the wheel, you should build on the experience of others and focus on making things better. Just be warned: This is touchy territory. If you blatantly rip off someone else’s theme without giving them credit, you are in for a world of hurt. The line between borrowing and stealing code is very thin and you can easily step over without even knowing it. So to be safe it’s always a good idea to credit the creator of whatever basic theme you decide to build on.

Step 4: Understand the inner workings of your theme

div-boxes.jpgEvery theme is different. And if you want to reshape a theme to your vision you need to understand how it works first. In the past this process was a total nightmare, but with Expression Web it is incredibly simple:

  1. First off, if you haven’t already done so, set your blog up as a Site in Expression Web so you have access to all the files.
  2. Open your blog in your favourite web browser and display the source code. In FireFox you click Ctrl+U and a new code window opens.
  3. Copy the entire code and paste it in the code view of a new html file in Expression Web. Save the file in the root of your site as something. I like the name testBed.html but you can call it whatever you want.
  4. Find the CSS call in the html code and redirect it to the local file you will be altering. I usually set up a new theme folder with all the old theme files in them so that I can always revert back to the original CSS file if I mess things up really bad. It’s good insurance.

div-list.jpgNow you have complete access to your theme and it’s CSS and you are ready to understand exactly how it works. While in Design view you can now click on any element and see the complete list of divs and other elements that make this specific part of the blog look the way it does. You will also see all divs and other elements displayed as superimposed boxes showing how the content flows. That way you will immediately get a solid understanding not only of how the theme works but what you need to change to make it look the way you want.

Step 5: Start choppin’!

If you’ve decided to make a graphic-heavy blog, you need to “chop” your design into manageable pieces. To be more precise, you need to cut out all the elements you want to feature in your blog in such a way that they’ll fit inside the divs, tables or whatever other element you wish to display them on. Expression Design and it’s Crop Marks feature is excellent for this purpose. You can see how this is done in this video demo I posted last year. How exactly you chop your design is up to you – it all depends on the desired end result. I’ll post some examples in a separate article later.

Step 6: Re-styling the Style Sheet

drag-div.jpgThis is the fun part: Once you have your testbed set up and connected to a local CSS file, you can start messing around. There are several ways of doing this depending on what you want to achieve. If for instance you want to alter the width of your main content area, all you have to do is click on any object within that area, then find the div that controls the area you want to change in your top bar and finally resize it by moving the sides using your mouse. It couldn’t be easier.

manage-styles.jpgIf you don’t like the brute force approach you can fine tune the code using the Modify Style feature: First off, click on the element you want to change. The style that controls this element will automatically be highlighted in the Manage Styles tab. Right click on the style, select “Modify Style” and a window will pop up with all the different options for modifying the style. Now you have complete access to the style and you can change it in any way you want for immediate results.

Step 7: Watch your changes in real time

A great thing about this method is that as you change the CSS code, you can see the changes in real-time right inside Expression Web using the Design view. Any change made will immediately be visible and as a result you see right away if something isn’t exactly working out the way you planned. It also means that if you do things that are not allowed in CSS, you’ll see that it doesn’t work and you can find out what went wrong. If you want to you can also make changes directly in the style sheet and see the changes in real-time. As a result, your style coding process becomes much easier and more effective.

Step 8: Save your changes

When you work with style sheets in Expression Web, you are actually working in two documents simultaneously: When you make that initial change in the stylesheet link (step 4) you are actually opening the .css file for editing. And when you save your testbed, the program will ask you if you want to save the changes to the embedded file as well (that would be the style sheet).


That way you avoid forgetting to save your latest CSS alterations and the process is that much simpler.

Step 8: Upload, test and publish

Now all you have to do is upload the new CSS file and any related graphics, make whatever changes you want to the php code and your blog will have a new look.

Observations, tips and pitfalls

There are a couple of things you need to know about styling blogs. First off, all blogging software is different so the php code will vary greatly. If you are planning on making massive structural changes in the blog, you might want to take a very close look at the documentation. Secondly, blogs often work with separate pages. In WordPress you have three sets of views: the “index” view, the “Pages” view and the “single post” view. To fully restyle your blog you need to make changes to all these views. The easiest way to do this is to open each view in your browser, copy the source code into your testbed document and make changes on a view-by-view basis. That way you have all bases covered. Third, make backups! It’s easy to mess things up really bad if you are just experimenting, so when you have something you like, make a backup. That way you can always go back and fix whatever you broke. Fourth, Ctrl+Z only works in the document you are currently in. So if you make a CSS change in your testbed document and then hit Ctrl+Z or click “Undo”, the undo will only affect the testbed document and not the CSS document. To undo your latest blunder in the CSS document you have to have that one open. It’s easy to forget and can lead to some real hassles later on. Fifth, WordPress templates are full of errors to begin with. These normally consist of unclosed or excessive divs and will normally show up in Expression Web as yellow highlights. Take the time to fix these in the PHP code or you could get some really bizarre results in browsers you didn’t test. Finally, test in as many browsers as possible. CSS is notoriously complicated because all browsers handle it differently. But if you do things properly your blog will look the same in all environments. Unfortunately the only way of making sure is to test it in all browsers, even ones you don’t really use.

So there you have it. That is the rough outline of how I restyled this blog to make it look the way it does now. The same technique was used to restyle the Vancouver blog and several other blogs I’m currently working on. It’s fast, effective and functional. I am guessing that the Expression Web team is going to touch on the same techniques in their presentation at MIX08 later this week (but I could be wrong – there are probably better ways of doing this) and I am definitely going to be there to pick up some more tips and tricks.

I’ll be posting some code examples to give you an idea of exactly how this blog works later on. For now, design, experiment and have fun.

By Morten Rand-Hendriksen

Morten Rand-Hendriksen is a Senior Staff Instructor at LinkedIn Learning (formerly specializing in AI, bleeding edge web technologies, and the intersection between technology and humanity. He also occasionally teaches at Emily Carr University of Art and Design. He is a popular conference and workshop speaker on all things tech ethics, AI, web technologies, and open source.

20 replies on “Designing a WordPress Blog Theme Using Expression Web”

I just tried to scroll through a message I was typing to send to you but I clicked the Submit comment button instead. Did you get my email? Dang, I wasn’t done editing it! 🙂


Hi Morten,

Great post and I love your new blog design, it’s beautiful! I just became aware of your blog several weeks ago through a Canadian Developer Platform Evangelist that I met. Hey, did you know that in Step 4 you can use File > Open in Expression Web and enter the URL of the page you want? Then if you save a local copy, the urls to dependent files, like images and CSS, point to the files on the server. I find this handy for helping users troubleshoot their web pages, and used it extensively while developing the CSS for my own blog. Expression Web would generate the CSS locally and once I had the results I wanted, I’d copy the local CSS that Expression Web was putting in the page and add it to my CSS overrides for my blog.

I hope you get to see Nishant Kothary and Tyler Simpson’s session at MIX on creating a custom WordPress template? It’s on Thursday and you should talk to them afterward:

Microsoft Expression Web: From Comp, to CSS, to Code!
Thursday, March 6 10:15 AM – 11:30 AM, Delfino 4105
Speaker(s): Nishant Kothary, Tyler Simpson
Audience(s): Creative
Session Type: Breakout
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.


This is a really interesting bit of information. I’ve been learning how to use Expression Web over the past year, but just started to learn about WordPress because I am interested in building small niche sites. Can you tell me, can I stick with only Expression Web to do this or am I better off to utilize all the latest plugins and advantages that WordPress offers and edit the site using EW as you suggested in this article? Thank you.

Hi Morten,

I have a question I have really big hopes of using your description. But I got stuck at the point
“Find the CSS call in the html code and redirect it to the local file you will be altering.”
I am not 100% sure what do you mean.
What I am trying to achieve is not too easy I think, but I hope it is possible.
I am making a website (still learning as you can see)for my wife. The site I have done so far is still under construction too, but I found out that she probably wont be able to use EW on her own so I figured I should use WP.
The first page you can visit:
And what I am trying to do is put into WP:

I used your instructions so far, but this “find the CSS…” I am not 100% sure what you mean. please if you still visiting this post, I would be really grateful.


Hi Mark.

It’s easy if you know what you’re looking for. If you copy the code from the working site into Expression Web and look in code view you’ll see that off the top there is a code call that looks like this:

<link rel=”stylesheet” type=”text/css” href=”” />

All you have to do is change it to a relavite link so it reads

<link rel=”stylesheet” type=”text/css” href=”wp-content/themes/yourTheme/style.css” />

instead. That way Expression Web will access your local version of the style sheet whenever you make edits.

To get a better idea of how to do it, watch the video from my WordCamp Whistler presentation. In it you’ll see exactly how I do it.

I’ve been toying with the idea of creating some more imaginative WordPress themes but never have the time (or inclination) to get stuck into coding. Thanks for the good ideas in the post and I’ll definitely be having a play on Expression.

Nice design for the theme too by the way…


I find this article interesting and useful for “normal” situations, however I am trying to create a blog for my (school) class. WordPress, blogger, and other “large/well-known” blogging sites are blocked on campus. All I want is a simple blog for my students to read important information and ask questions/make comments. Do you know of any simple blogs that may be used because it is “overlooked” or of a way to create a basic blog using Expression Web for my needs?

Sandra: The easiest way to get a blog up and running that you have complete control over is to do self-hosting. This way you also avoid any filters that remove large social sites like or

With self-hosting you install WordPress (download from under your own domain and have complete access and control to every element of the blog – from the content itself to what themes and plugins you want to use.

Look for a cheap web hosting plan (no more than $4 per month) that supports PHP and MySQL and gives you at least 1 MySQL database. Most hosts provide a free domain name with a 1 year contract. I personally use

Ahah! Been trying to find info on creating WordPress themes with Expression Web. I will give this a shot and see how it goes. Thanks

Thanks for posting the information. I just started using expression web software and found the information on your post helpful – especially the pitfalls section! I used it to edit my blog.

Designing blog and website is much easy with WordPress, because there is no need for coding or a designer. Also there are more than thousands of plugin’s available(incliding social) online. So we design our website with whatever we want.

Do you have a spam problem on this site; I also am a blogger, and
I was wanting to know your situation; many of us have developed some nice
practices and we are looking to trade methods with others, why not shoot me an email if interested.

Hi there,

I have a website which I designed on Expression web

I want to add a BLOG PAGE to my exsisting website, I am a bit new with this, my host gave me options for blogging, I downloaded an empty word press template from my website’s c-panel, but what do I do now to get the coding so that people can leave comments etc.

Thank you so much for your help. I want to get better with this. I also see that people are not picking me up on google search. I want to be on top. How do I optimize my SEO?

Warm Regards,

Comments are closed.