Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Double border CSS3 - FF !Chrome

I'm wondering, why this double border on table TDs won't show in Chrome but only in FF? Any ideas what could be the work around? Thanks!

http://jsfiddle.net/yQQLk/1/

like image 961
Kayla Avatar asked Feb 14 '26 19:02

Kayla


2 Answers

Not sure why you're using box-shadow to produce a double border, when the border property itself already supports a double border on its own. Just use the following CSS instead of what you've got:

td {
    border-bottom: 3px double red;
}

Note you'll need to increase the size of the border to 3px so that both of the lines show up (with 1px, it sometimes doesn't show up at all when you specify double).

The other advantage is that this will work in all browsers, including older ones which don't support box-shadow.

like image 185
Spudley Avatar answered Feb 16 '26 08:02

Spudley


Increase your border thickness to to see a more obvious demonstration of the rendering differences between the two browsers. It seems that in FF, the box-shadow is overlaid on top of the border, in Chrome it hides underneath.

You could use another approach - perhaps use a border-bottom combined with a text-decoration: underline.

like image 26
Boris Smus Avatar answered Feb 16 '26 07:02

Boris Smus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!