I have css looks like that:
#caltable th {
border: solid 1px #333;
border-radius: 7px;
background: #f00;
}
But this is what i've got in browser (Chrome/FF):
The question is how to get black line also rounded?
Your problem is unrelated to how you have set border-radius . Fire up Chrome and hit Ctrl+Shift+j and inspect the element. Uncheck width and the border will have curved corners. Show activity on this post.
Change border-collapse:collapse
to border-collapse:separate
on the <table>
.
You should also add support for browsers which are not at the newwest version:
-moz-border-radius: 7px;
-o-border-radius: 7px;
-ms-border-radius: 7px;
-webkit-border-radius: 7px;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With