jeudi 19 juin 2014

HTML - Can't style object to eliminate scroll bars


Vote count:

0




I'm making an eBay listing whereby I'm embedding a webpage using the following code:



<!--[if !IE]> <!-->
<object id="object" type="text/html" data="http://ift.tt/1lKM3x0"
</object>;
<!--<![endif]-->
<!--[if IE]>
<object id="object-ie" classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="http://ift.tt/1lKM3x0"></object>;
<![endif]-->


In order to prevent scroll bars, I need to ensure that I style the body of the document containing the code I wish to load dynamically with style="border: 0; margin: 0; overflow: hidden;".


Because I can't include the body tag in the listing, I've tried to use a div tag like so:



<div style="border: 0; margin: 0; overflow: hidden;">
<!--[if !IE]> <!-->
<object id="object" type="text/html" data="http://ift.tt/1lKM3x0"
</object>;
<!--<![endif]-->
<!--[if IE]>
<object id="object-ie" classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" data="http://ift.tt/1lKM3x0"></object>;
<![endif]-->
</div>


This doesn't work, however. Please can someone tell me what I'm doing wrong?


Thank you!



asked 19 secs ago






Aucun commentaire:

Enregistrer un commentaire