Reputation: 313
I have this piece of code:
<table style="background-image: url(path/to_image.png)">
And when I load it in CKEditor it's transformed in:
<table style="background-image: url("path/to_image.png")">
Is this still still valid CSS? Actually I'm not so interested if it's valid but if there would be any problems with any web browser or email client ( the editor is used for composing a html email ). Firefox and Thunderbird seem to be fine with it.
Upvotes: 0
Views: 896
Reputation: 12740
Anyway, using background-image: url()
won't work in an email with Thunderbird. Unless they have fixed it, Thunderbird didn't show background images.
And in the rest of mail clients, the user will get a warning because the mail is trying to load external files.
Upvotes: 0
Reputation: 888185
It's valid, and required by the HTML standard, but it's unlikely to work in Outlook Express.
Upvotes: 0
Reputation: 449783
It's very valid (Actually, this is probably the only valid way to do it! Got to keep this in mind.), but I would still test it in major E-Mail clients just to make sure. As we all know, HTML support in E-Mails is abysmal.
Upvotes: 1
Reputation: 944439
Yes, of course it is. Attribute values don't stop being attribute values just because they contain CSS or a URL. Entities still work (and are required if the character would otherwise have special meaning).
Upvotes: 1