Michael Newberry wrote: > I'm pasting images into an iframe using a simple click on a link. The image > always appears at the 0,0 scroll position inside the iframe. Is there a > simple css way to center it? I've tried using text-align:center. > > Thanks, > > Michael
Hello, Michael, since iframe is a deprecated inline element. http://www.w3.org/TR/html401/present/frames.html#edef-IFRAME There are two options using depreciated elements or depreciated attributes that will work. <div align="center"><iframe> content of iframe </iframe></div> <center><iframe> content of iframe </iframe></center> Pick your poison. BTW, this is a HTML question. I suggest that you learn these. 1. <http://www.w3.org/TR/html401/index/elements.html> 2. <http://www.w3.org/TR/html401/index/attributes.html> -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/