Tim

Footprints in the snow of a warped mind

Microsoft Expression Web and CSS -is it all it's cracked up to be?

Where to find me

Flickr Icon  Twitter Icon  Linked In Icon  FaceBook Icon  Windows Live Alerts Butterfly  RSS 2.0 

Business Protection by Crisis Cover
DDD South West

Tag Cloud

AJAX (4) Analysis (3) ASP (6) ASP.Net (59) Error Reporting (4) Web Service (2) WSDL (1) Atlas (2) Born In The Barn (1) Business (87) Business Start-up Advice (30) Client (17) Expanding Your Business (21) Recruitment (1) C# (21) Canoeing (4) Canoe Racing (5) Cheshire Ring Race (5) Racing (2) Training (4) CIMA (1) Cisco (1) 7970G (1) CMS (1) Code Management (1) Cohorts (4) Commerce4Umbraco (1) Content (1) Content Management (1) Content Management System (1) CSS (3) dasBlog (5) DDD (1) Design (10) Icons (1) Development (24) eCommerce (10) Employment (2) General (39) Christmas (6) Fun and Games (11) Internet (22) Random (46) RX-8 (8) Hacking (1) Helpful Script (3) Home Cinema (2) Hosting (2) HTML (1) IIS (11) iPhone (1) JavaScript (4) jQuery (1) Marketing (6) Email (1) Multipack (1) MVC (1) Networking (3) Nintendo (1) Nuget (1) OS Commerce (1) Payment (1) Photography (1) PHP (1) PowerShell (2) Press Release (1) Productivity (3) Random Thought (1) Security (2) SEO (5) Server Maintenance (6) Server Management (11) Social Media (2) Social Networking (3) Experiment (1) Software (10) Office (5) Visual Studio (14) Windows (4) Vista (1) SQL (8) SQL Server (19) Statistics (2) Stored Procedure (1) Sublime Text 2 (1) TeaCommerce (1) Testing (2) The Site Doctor (127) Turnover Challenge (1) Twitter (3) uCommerce (11) Umbraco (30) 2009 (1) 2011 (1) Web Development (66) WebDD (33) Wii (1) XSLT (1)

Blog Archive

Search

<May 2012>
SunMonTueWedThuFriSat
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789

Recent Comments

Blog Archive

Various Links

Blogs I Read

[Feed] Google Blog
Official Google Webmaster Central Blog
[Feed] Matt Cutts
Gadgets, Google, and SEO
[Feed] Ol' Deano's Blog
My mate Dean's blog on my space, equally as random as mine but not off on as much of a tangent!
[Feed] Sam's Blog
Sam is one of my younger brothers studying Product Design and Manufacture at Loughborough, this is his blog :) Enjoy!

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

newtelligence dasBlog 2.2.8279.16125

Send mail to the author(s) Email Me (Tim Gaunt)

© 2012 Tim Gaunt.

Sign In

# Thursday, July 19, 2007

Microsoft Expression Web and CSS -is it all it's cracked up to be?

Thursday, July 19, 2007 11:02:32 PM (GMT Daylight Time, UTC+01:00)

After a number of months of hearing how great Microsoft's latest web development environment is -Microsoft Expression Web- I thought I would install it in place of Dreamweaver on my new laptop. I was -until today- pretty impressed with some of it's features, how well it handles CSS within the IDE and had no reason to complain.

That was until today. As I write this, I'm sitting in our apartment in Croatia with the sun beating down on me, generally enjoying life. As it's incredibly hot outside around noon, I thought it would be a good idea to crack on with some work on the new The Site Doctor design -which I hope to have online shortly after I return. So I load up Microsoft Expression Web and the various pages of the new site and crack on.

I've already sorted the CSS for the site so there was no need to open any of the files or make alterations to them however I like to have them open so I can check class names and ids as I work. When I switched over at one point, I noticed that my nice, neat and tidy CSS file of around 190 lines was suddenly closer to 300. I couldn't work it out until I noticed that Microsoft Expression Web had separated out all my group declarations into separate declarations such i.e.:

a, a:link, a:visited, a:active{
text-underline: none;
}

Became:

a:active{
text-underline: none;
}
a:visited{
text-underline: none;
}
a:link{
text-underline: none;
}
a{
text-underline: none;
}

Well done Microsoft, I thought you would have learnt your lesson after the fiasco that was Visual Studio 2003's HTML editing, what on earth were you thinking? I'm sure this is a simple setting I need to change (and I can understand why they've done it) but not having Internet access here there's no easy way of finding out (I've searched the help files) which means hours of careful CSS architecture have been completely trashed.

So, as soon as I realised, I spent about 20 minutes meticulously working through the bunch of CSS files open reversing the mess Microsoft had made of them and promptly closed them, safe in the knowledge Microsoft Expression Web can't mess with them again. Or so I thought.

A short while ago I needed to open one of the CSS files again to alter a few declarations and to my horror I found that the declarations had been ungrouped. I can't believe it, not content with simply altering the CSS files that are open, Microsoft Expression Web actually alters the CSS files on the FSO without you knowing.

If you're ever thinking about using Microsoft Expression Web for CSS development then don't expect your files to be neat and tidy, in my case I would say the files were increased in size by almost 5x which ok may be 1Kb --> 5Kb but if you're getting tens of thousands of hits a day, that's a serious bandwidth increase.

Not a happy bunny.

 

Don't forget to follow me on Twitter.

Friday, July 20, 2007 7:43:35 PM (GMT Daylight Time, UTC+01:00)
Thanks... I was wondering the same thing.. I have just started using Expression Web too,and I noticed my files got bigger without apparently any work done on them.. I was wondering how the heck that happened :(
mausami
Monday, July 23, 2007 7:37:53 PM (GMT Daylight Time, UTC+01:00)
Tim-
I just looked into this problem. In this particular case, there is definitely an issue with the CSS code being exploded--although not representative of our CSS handling and features in general. This is clearly not desired behavior and will absolutely be fixed. The team here feels strongly that Expression Web be oriented toward supporting web standards and allowing authors to create efficient, maintainable code. This is one of the reasons why we've spent so much energy on the CSS features. I can't say when this fix will be rolled into a publically-available version. But, we will make it available as soon as we can.
Steve Guttman
Product Unit Manager
Expression Web
Steve Guttman
Monday, July 23, 2007 10:18:09 PM (GMT Daylight Time, UTC+01:00)
Hi mausami,

You're welcome, I hope you haven't lost too much time with it -at least Microsoft are now aware of it so hopefully we'll have a fix soon.

Tim
Monday, July 23, 2007 10:18:45 PM (GMT Daylight Time, UTC+01:00)
Hi Steve,

Wow thanks for the response! I can understand why you may need to do that I was just a tad shocked it wasn't loaded into i.e. a temporary copy of the file (especially as it alters the file even when closed!) but I'm pleased to know I've highlighted an issue you weren't aware of :)

Let me know when it's been fixed and I'll give Expression another go (with an open mind :))

Tim
Tuesday, July 24, 2007 8:09:02 AM (GMT Daylight Time, UTC+01:00)
Not sure if it is of any help but I just came across the following 'CSS Cascading Style Sheet Optimiser'[1] service that may be able to fix your files until Microsoft fix the problem they created. I am still using Dreamweaver MX(v6?) for front-end development as for some reason I just don't feel comfortable working on the front-end in Visual Studio 2005 despite the improvements on the VS2003 editor, something just doesn't feel right! I was considering looking at Expression as an alternative to Dreamweaver as the new Adobe upgrade pricing I have heard is a bit prohibitive.

[1] http://flumpcakes.co.uk/css/optimiser/
Tuesday, July 24, 2007 12:56:05 PM (GMT Daylight Time, UTC+01:00)
Thanks Simon, I used to have a similar tool but completely forgot about it. I gave your link a go but it doesn't appear to group the declarations, this one [1] however appears to :)

[1] http://www.cssoptimiser.com/optimize.php

Tim
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Live Comment Preview