Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Level Up Your CSS Skills with These Pro Tips
(
github.com/allthingssmitty
)
2 points
by
AllThingsSmitty
on Sept 12, 2017
|
hide
|
past
|
favorite
|
3 comments
eurticket
on Sept 12, 2017
[–]
> border-right: none;
Shouldn't this be border-right: 0;
AllThingsSmitty
on Sept 12, 2017
|
parent
[–]
Hmm, interesting. Since `border-right` is shorthand, we're saying that `0` as a value is applied to `border-right-width`, `border-right-style`, and `border-right-color`. The `0` value can be applied to `width` but not to the other properties.
eurticket
on Sept 15, 2017
|
root
|
parent
[–]
That is interesting! Why can't it be applied to any other properties?
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Shouldn't this be border-right: 0;