Expression Web Reformats Stylesheet

I think I’ve finally pinpointed an Expression Web bug that has been driving me crazy.
I like to define multiple selectors all at once in stylesheets by separating them with commas. For example — instead of defining the font color for each heading, like this:

h1 { color: red }<br />
h2 { color: red }<br />

… you can list the different selectors with commas to define the font color all at once, like this…

h1, h2, h3, h4, h5, h6 { color: red }

Well, I noticed that at some point (and I didn’t know when until today), Expression Web would break out all the selectors into their own individual rules. So my simple CSS code would get turned into this:

h6 { color: red } <br />
h5 { color: red }<br />
h4 { color: red }<br />
h3 { color: red }<br />
h2 { color: red }<br />
h1 { color: red }

I found this pretty aggravating, so today I finally sat down and worked hard to figure out what triggered the bug.
From my testing, it looks like if you copy content from one page in Expression Web and paste the content into another page, the bug will be triggered and your stylesheet reformatted. The unfortunate thing is that there is no way to “undo” the change — you’d have to go back and manually type out your rules for them to be the way that they used to be.
I’ve put in a post at the Expression Web newsgroup and will keep you posted if there are any updates on this issue. If you’ve come across anything else, please post a comment!
In the meantime — I’ve saved a copy of my properly formatted stylesheet as “backup.css,” and use that to replace my stylesheet if I inadvertently reformat it by copying and pasting (which I do quite often!).

Leave a Comment

Your email address will not be published. Required fields are marked *

Enter Code *

Filed Under


Are you preparing to launch a new #SharePoint intranet?

Don’t spring it on employees out of the blue. First, talk to as many of them as you can.

Planning is just phase one. For all of our tips, watch our recent webinar!

It's that time again! Join #Microsoft MVP & Regional Director, @EricOverfield on Thursday, October 28th, at 11:00 AM PST as he walks through #MicrosoftViva’s current state & offerings and what they mean to your #digitalworkspace right now.

It's the final countdown! Join @EricOverfield at 11am PST to learn about common pitfalls and paths to success when moving to #SharePointOnline. You'll walk away with practical tips to use in your organization today!

In today's episode of the #PixelMillWebinars, you'll learn from the experience of a global organization’s path to digital teamwork victory and get to see first-hand how to successfully plan a smooth migration for your team.

Join us at 11am PST!

It's the day of the show y'all! Join #Microsoft RD +MVP @EricOverfield at 11am PST as we walk you through a multi-national enterprise software company’s migration journey to #SharePointOnline. Learn about common pitfalls and paths to success.

Subscribe to PixelMill's

* indicates required

Let's Talk Digital
Workspaces Today

Get In Touch