문제

I included some social network icons at the bottom right corner of the footer of my webpage. All the icons are of the same size, 22x23 pixels.

However the first icon is displayed as 16x16 pixels, while the second is displayed in its actual size. When I hover over the first image using the chrome developer window the tooltip reads,

16 x 16 pixels (Natural 22 x 23 pixels)

<li><a href="https://www.facebook.com/MontrealIntClinics" target="_blank"><img src="img/youtube.jpg" width="16" height="16" border="0"></a></li>
<li><a href="https://www.facebook.com/MontrealIntClinics" target="_blank"><img src="img/twitter.jpg" border="0"></a></li>

Have I dont anything wrong, or is it missing any CSS

도움이 되었습니까?

해결책 2

Your markup for the youtube image has width="16" height="16" inline. The twitter image doesn't and so will be defaulting to it's normal size.

다른 팁

i see yo specified explicit size for the first but not for second

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top