2009/11/11 Alan Gresley <[email protected]>: > Hello, Michael, since iframe is a deprecated inline element.
Iframe is not deprecated (although is discouraged). > There are two options using depreciated elements or depreciated > attributes Why would we use deprecated parts of HTML to do this? Especially when the question asks for a CSS solution? > that will work. No, they won't. The two suggestions you make would center the iframe, but the question was about centring the image loaded into the iframe. The content of an iframe is a separate document. It can't be styled from the parent document, so you have to load an HTML document in the frame instead of the image directly. Any styling can then take place in that document. -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
