Centered Text Not Working in saved htm

W

Wayne Wengert

I have an Excel 2003 worksheet which includes some text centered across 6
columns. When I do a SaveAs and save it as HTM it looks fine in Excel but
when I load it to a web site it is left aligned?

Wayne
 
P

Patrick Molloy

you'll need to enclose quote marks around spaces as spaces are ignored in
HTML otherwise
eg
test
comes up as
test
while
' test'
will be
test

I think...
 
W

Wayne Wengert

It turns out that I had a graphic in the cell along with the text. Excel
handled it OK, even when I did a SaveAs htm format but the resulting htm
page would not render correctly. I moved the graphic to its own cell,
outside of those being centered, and it works.

I guess it is the way Excel writes the html code when it has a graphic in
the mix?

Wayne
 

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