Try facebook's generated code: http://developers.facebook.com/docs/reference/plugins/like/
<iframe src="http://www.facebook.com/plugins/like.php?href&layout=standard&show_faces=true&width=450&action=like&font&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> On 9 March 2011 22:47, <wsg@webstandardsgroup.org> wrote: > ********************************************************************* > WEB STANDARDS GROUP MAIL LIST DIGEST > ********************************************************************* > > > From: "designer" <desig...@gwelanmor-internet.co.uk> > Date: Wed, 9 Mar 2011 11:46:05 -0000 > Subject: html5 and iframes? > > I am having a problem with iframes in html5. I am trying to put a facebook > 'like' link on a website and the results are not always as expected. > Particularly, IE 7 and 8 show a border AND the box size is different! I am > using this: > > > <iframe id="noborder" > src="http://www.facebook.com/plugins/like.php?href=www.marscovista.co.uk&layout=standard&show_faces=false&action=like&font=verdana&colorscheme=light&"> > </iframe> > > in conjunction with > > #noborder { > border : 0!important; > height : 35px; > width : 600px; > } > > It's fine in Firefox, Safari and IE6 (amazingly!), but not in IE7 and 8. Am > I missing something? You can see it in situ here: > > http://www.marscovista.fsnet.co.uk/index_beta.html > > Any help gratefully recvd! > > Thanks, > > Bob > > > > > ************************************************************** > Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm > Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm > Help: memberh...@webstandardsgroup.org > ************************************************************** > > > ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************