Hi,
I inserted Facebook like button to my website and it looks fine on Chrome, Firefox, Safari, acceptable in IE 9 but it is a little below the line on Opera (11.51). It looks like this:
I tried many things including padding, line-height, list etc. but they didn’t work. Here is the code I have:
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
</head>
<body>
<div id="container">
<div id="header">
<div id="header-left">
<div id="logo"><a href="http://site.com/" title="Site"><img src="/logo.png" width="100" height="40" title="Site" alt="Site" /></a></div>
</div>
<div id="header-right">
<div id="like">
<div class="fb-like" data-href="http://site.com/" data-send="false" data-layout="button_count" data-width="60" data-show-faces="false" data-font="trebuchet ms"></div>PicRank
</div>
and
body {
margin: 0;
background: #eee;
font-family: 'trebuchet ms', helvetica, sans-serif;
}
img {
border-style: none;
}
#container {
margin: auto;
width: 810px;
background: #fff;
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
}
#header {
padding: 20px 20px;
height: 46px;
border-bottom: 1px solid #ddd;
}
#header-left {
float: left;
}
#logo {
margin: 6px 0 0 0;
}
#header-right {
float: right;
line-height: 2em;
}
#like {
text-align: right;
padding: 0 6px 0 0;
}
#navigation ul {
margin: 0;
padding: 0;
list-style: none;
}
#navigation li {
display:inline;
}
Also, the like button is messed in IE8 and lower. Thanks for any ideas.