Google-drive – Uploading Styled HTML to Google Docs

cssgoogle-drivehtml

I find that when I upload Styled HTML to Google Docs, eg. with CSS

.underline { text-decoration: underline; }
.del { text-decoration: line-through; }
mark { background: yellow } 

None of these will take effect. However if I use CSS produced when downloading a Google Docs as HTML like

.c9 {
    text-decoration:underline;
}

It works. Can I say that Google does not take into considerations any CSS?

Best Answer

The latest version of Google Docs strips (most) CSS and the feature to edit HTML or edit CSS will not be returning.

https://docs.google.com/support/bin/answer.py?answer=176442

I presume this is done to maintain consistency across multiple devices, especially mobile, which now supports document editing.


Here's another discussion with a possible (temporary) workaround: