At my website, the logo in the top left corner is not centered. Here is the code I am using:
.header_col1 {
float: left;
width: 20%;
background: #009240;
text-align: center;
position: relative;
}
.header_col1 a { /* my logo */
display: inline-block;
vertical-align: middle;
}
I have read articles suggesting that this technique should work, but for some reason it's not working in this case. I am avoiding absolute positioning because the green area surrounding the logo decreases in smaller screen resolutions, and the logo size must adjust accordingly.