"mso-" style?

C

cdars

Hi,

I came across "mso-" style for the first time yesterday after 6 years
of web development. That's the first time I know about this and
"mso-spacerun" saves my day by displaying " " as ASCII(20) instead
of ASCII(160).

<span>A&nbsp;B</span>
<span style="mso-spacerun:yes;">A&nbsp;B</span>

I wonder there should be more "mso-" style. But I can't find it at
MSDN, Google search, not to mention CSS books.

Is there any documentation on this?

Thanks.
John
 
S

Steve Easton

My best guess is that you're looking at something created by word or
publisher.!!
Or word art and VML.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
E

E. T. Culling

You need to get rid of it. If you have text from word copy and paste it into
Notepad to strip out that ugly MS code. Then copy and paste it, unformatted
into your web page. Format it correctly with CSS. don't ever bring Publisher
files into FP!
Eleanor
 
P

P@tty Ayers

E. T. Culling said:
You need to get rid of it. If you have text from word copy and paste it
into Notepad to strip out that ugly MS code. Then copy and paste it,
unformatted into your web page. Format it correctly with CSS. don't ever
bring Publisher files into FP!
Eleanor

I was going to say the same thing.. don't worry too much about what it is,
just get it out of your code!
 
C

cdars

Hearty thanks to all your replies.

The story was:
We wrote a web application (ASP 3.0) to generate Excel file for users
to download. Without using server-side objects, obviously we cannot
create normal Excel file in binary. So basically we generates HTML
files and put the MIME type as Excel. Thus IE thinks it is an Excel
document and automatically invokes Excel to view it.

Then one day a user called and said he couldn't search the document
with Excel's "Find" for text including space. He sees "A B" in a cell
but the search got nothing. We copied the cell content to notepad and
discovered that the middle "space", written as "&nbsp;" in the HTML
source, was interrupted as ASCII 160: non-breaking space, rather than
the usual space key as ASCII 20. We cannot get rid of "&nbsp;" and
use usual space instead in the HTML source generation since if there
are double spaces in a text string, it will be displayed as single
space in the cell. This is native HTML behavior.

At last we discovered the "mso-spacerun" style by saving the document
in HTML.

I understand that's not standard CSS attributes. But as a web developer
and have worked with CSS for so long, I would like to understand more
on this. Surprisingly, virtually there is no documentation for this...

I just wanna know more about these "hidden" attributes.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top