I am looking for some alternate way to do:
When I do the W3C validation, I am getting the error:
I'm not sure what you're trying to do here, but this should be what you are looking for:
iframe { background-color: transparent; }
This is, of course, assuming that you want the background to the iframe be transparent.
iframe