Rounded table corners |
Rounded table corners |
CharlesEF |
Jan 2 2025, 04:42 PM
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? countdown_timer.htm ( 3.51k ) Number of downloads: 20 |
pandy |
Jan 2 2025, 05:24 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,781 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 |
Jan 3 2025, 01:21 AM
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 |
Jan 3 2025, 06:23 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,781 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 |
Jan 3 2025, 11:29 AM
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.
countdown_timer.htm ( 3.6k ) Number of downloads: 12 This post has been edited by CharlesEF: Jan 3 2025, 11:33 AM |
CharlesEF |
Jan 3 2025, 11:59 AM
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 |
Jan 4 2025, 06:01 AM
Post
#7
|
Advanced Member Group: Members Posts: 240 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 |
Jan 4 2025, 04:44 PM
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 |
Jan 5 2025, 03:31 PM
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.
countdown_timer.htm ( 3.73k ) Number of downloads: 9 |
coothead |
Jan 5 2025, 07:18 PM
Post
#10
|
Advanced Member Group: Members Posts: 240 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 |
Jan 6 2025, 04:36 PM
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 |
Jan 7 2025, 02:35 PM
Post
#12
|
Advanced Member Group: Members Posts: 240 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 |
Jan 8 2025, 06:17 PM
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: 22nd January 2025 - 08:48 PM |