![]() |
![]() ![]() |
![]() |
CharlesEF |
![]()
Post
#1
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
I want a table with rounded corners. Sounds simple. But border-radius seems to have no effect. Attached is a simple countdown timer I got from w3Schools. I'm working on a different display for the results among other changes. I was able to get rounded corners a different way. But a side effect is gaps between the th cells. If I use 'border-collapse: collapse' then I get rid of the gaps but I end up with both square and round corners.
Is there a secret I don't know about? ![]() |
pandy |
![]()
Post
#2
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,815 Joined: 9-August 06 Member No.: 6 ![]() |
I think this may be what you are looking for.
https://unused-css.com/blog/css-rounded-table-corners/ |
CharlesEF |
![]()
Post
#3
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Thanks, border-spacing was what I needed.
|
pandy |
![]()
Post
#4
|
🌟Computer says no🌟 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 20,815 Joined: 9-August 06 Member No.: 6 ![]() |
Suspected that. I struggled with the same thing. I think that article explains it well. It's obvious - once one knows it.
![]() |
CharlesEF |
![]()
Post
#5
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
For anyone interested in my final solution. I only took a couple of CSS entries from the example article to make my CSS solution work. This example should work with any table of any size.
![]() This post has been edited by CharlesEF: Jan 3 2025, 11:33 AM |
CharlesEF |
![]()
Post
#6
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Ok, turns out to be too early in the morning for me. 1 correction needs to be made to my final solution post. Move these entries:
CODE -moz-border-radius: 5px; from '.countdown table' to '.countdown'. Sorry, now back to bed.-webkit-border-radius: 5px; -o-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px; |
coothead |
![]()
Post
#7
|
Serious Coder ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 257 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 ![]() |
Hi there CharlesEF,
coothead |
CharlesEF |
![]()
Post
#8
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Thanks for the info. Guess it's time to update my CSS template.
|
CharlesEF |
![]()
Post
#9
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Ok, last upload. I remembered I used an external function file, which I didn't upload. This upload will run as is.
![]() |
coothead |
![]()
Post
#10
|
Serious Coder ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 257 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 ![]() |
Hi there CharlesEE,
coothead This post has been edited by coothead: Jan 5 2025, 07:24 PM |
CharlesEF |
![]()
Post
#11
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Hi there CharlesEE,
Thanks,I'll check it out and report back.
coothead Who knows. Maybe they'll get 'border-collapse: collapse;' to work with 'border-radius'? Until then this solution should be fine, even if they get it to work. |
coothead |
![]()
Post
#12
|
Serious Coder ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 257 Joined: 12-January 23 From: chertsey, a small town 25 miles south west of london, england Member No.: 28,743 ![]() |
Hi there CharlesEE,
coothead |
CharlesEF |
![]()
Post
#13
|
Programming Fanatic ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,013 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 ![]() |
Oh, that 5 years. That was the date on the w3schools example, that I worked with. No other reason.
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 19th May 2025 - 02:20 AM |