开发者

css issue- span and anchor causing extra margin even with no height or width

开发者 https://www.devze.com 2023-04-06 01:52 出处:网络
Driving me crazy... Overlay-thats-absolutely-positioned Span/anchor/image-thats-absolutely-positioned span and anchor are set to width:0开发者_开发问答;height:0;margin:0; and still they offset the

Driving me crazy...

Overlay-thats-absolutely-positioned

Span/anchor/image-thats-absolutely-positioned

span and anchor are set to width:0开发者_开发问答;height:0;margin:0; and still they offset the image by a few pixels

(if you highlight the overlay it's obvious)

CSS Gurus??

http://jsfiddle.net/danielredwood/aBWn6/1/


Just add display: block; to their CSS. The width and height are ignored for inline elements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号