开发者

Mystery 1px border in WebKit

开发者 https://www.devze.com 2023-01-19 05:42 出处:网络
I have a mystery 1px bottom border showing up in Safari and Chrome (I guess a WebKit thing). Firefox displays it fine.

I have a mystery 1px bottom border showing up in Safari and Chrome (I guess a WebKit thing). Firefox displays it fine.

The button below should sit flush with the tealy bar beneath. There should not be that 1px line separating them.

Mystery 1px border in WebKit

I've played around with height, border, position, padding and margin but haven't been able to figure this one ou开发者_C百科t.

Changing bottom: 0 to bottom: -5px in Web Inspector still produces the line.

There are quite a lot of styles going into it, so I'll try and amalgamate the cascade.

#tell-a-friend {
  background-repeat:no-repeat;
  display:block;
  height:33px;
  margin-right:0;
  position:absolute;
  float:right;
  font-size:1.2em;
  margin-right:0.8em; 
  background-position:right 0;
  bottom:0;
  height:35px !important;
  left:682px;
  width:82px;
}

Then again, I may be better off linking to the site.

The CSS is minified, so use Web Inspector to view the CSS.

I've tried everything I can think of right now, so I'm going to see if you guys can help me :)

Many thanks!


Edit: it's your <div id="header">'s absolute height. Try making it one pixel shorter.

Mystery 1px border in WebKit

It's not a black outline, it's the gray background... the background image has a 1px transparent row on the bottom, and the gray background shows through.

0

精彩评论

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

关注公众号