W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

Re: [csswg-drafts] [css-tables] Setting order of rendering borders with border-collapse: collapse

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Sun, 15 Oct 2017 14:00:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-336713510-1508076033-sysbot+gh@w3.org>
I don't think it's worth adding a new property which only works for collapsed tables. You can use outlines instead of borders:

```css
table {
  border-spacing: 3px;
}
th, td {
  outline: 3px solid #ccc;
}
.highlighted-cell {
  outline-color: #f30;
  position: relative;
}
```

https://jsfiddle.net/vpkst1rf/1/

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1870#issuecomment-336713510 using your GitHub account
Received on Sunday, 15 October 2017 14:00:41 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC