SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 8th, 2003, 09:31 PM
byepolar byepolar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 15 byepolar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question CSS style for rounded table borders?

What is the CSS style for rounded table borders?

Does it work across all the major browsers, any downsides?

Reply With Quote
  #2  
Old February 8th, 2003, 09:38 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
According to the CSS3 Borders module still in Working Draft:

border-radius: 5px;

Mozilla implements this as
-moz-border-radius (because it hasn't been standardized yet), but no other browser provides such an implementation.
__________________
Jason Contact Me
Super moderator @ CodingForums

Reply With Quote
  #3  
Old February 8th, 2003, 09:49 PM
byepolar byepolar is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 15 byepolar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Not working

I use frontpage, which may be why it's not working:

table { border-radius: 5px; border-style: solid; border-color: #CC0000; padding:10; background-color: #FFFFFF; margin-left:auto; margin-right:auto }

Reply With Quote
  #4  
Old February 9th, 2003, 09:47 AM
Tuxie Tuxie is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Inside the GNU/Hurd kernel
Posts: 492 Tuxie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 1 m
Reputation Power: 7
You can also change individual border radius.For Mozilla that would be:
-moz-border-radius-bottomleft
-moz-border-radius-bottomright
-moz-border-radius-topleft
-moz-border-radius-topright

Reply With Quote
  #5  
Old February 9th, 2003, 04:40 PM
kingmike's Avatar
kingmike kingmike is offline
Super Genius
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Orlando, Florida
Posts: 314 kingmike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 7 sec
Reputation Power: 7
Send a message via AIM to kingmike
Why don't you just use an image?
__________________
Sleep is highly overrated.

Reply With Quote
  #6  
Old February 9th, 2003, 08:28 PM
Eclipce Eclipce is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2000
Posts: 763 Eclipce User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 29 m 25 sec
Reputation Power: 0
Cause it is easier to use style sheets than it is to make an image.

Eclipce

Reply With Quote
  #7  
Old April 24th, 2003, 02:55 PM
randomblink randomblink is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Just this side of hell, Tulsa, Oklahoma...
Posts: 13 randomblink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 32 sec
Reputation Power: 0
Send a message via ICQ to randomblink Send a message via AIM to randomblink Send a message via Yahoo to randomblink
Table Borders

Ok...
I agree that CSS is easier and usually nicer looking than clunky <td> placement to get the dang borders to look nice... Now, my question is...

Can you use CSS to place image borders on a table?
Couldn't you use position-absolute or some-such to place a border top... border top right... top left...???

I would like to use images for my table borders... but I really don't wanna have to create freaking cell placements for everything...

Help me Mr. Popeil...

Reply With Quote
  #8  
Old April 25th, 2003, 02:00 AM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 4,087 kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 2 Weeks 5 Days 20 h 5 m 24 sec
Reputation Power: 514
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
You could w/ absolute positioning, but it wouldn't work so well probably. If anything comes out differently for some reason, everything will be messed up. The most universal way would be to just make the table cells for the images. Shouldn't be that hard, just make a 9x9 table and put the images in the outter cells, content in the middle cell.

Reply With Quote
  #9  
Old April 25th, 2003, 08:31 AM
randomblink randomblink is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Just this side of hell, Tulsa, Oklahoma...
Posts: 13 randomblink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 32 sec
Reputation Power: 0
Send a message via ICQ to randomblink Send a message via AIM to randomblink Send a message via Yahoo to randomblink
Angry Crap!

I hate coding HTML for something that CSS should be able to do...
It's a shame there isn't some kinda CSS code for something like:

table
{
border-top-right:url(some link here);
border-top-center:url(some link here);
border-top-left:url(some link here);
}

etc...

That would be so much easier... and cleaner too...

Ah well...
I guess until the internet restructures itself to fit my needs, I will make do with what I have...

Reply With Quote
  #10  
Old September 5th, 2003, 01:25 PM
jordan314 jordan314 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 jordan314 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I was trying to do the same thing and I found this thread doing a google search for "table css image borders," and also came across this page:
URL
It has a solution to your problem.

Reply With Quote
  #11  
Old September 5th, 2003, 03:57 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,620 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 1 h 17 m 41 sec
Reputation Power: 532
here is a better solution using purely css.

http://www.virtuelvis.com/gallery/css/rounded/

its should work in standard compatible browsers

Reply With Quote
  #12  
Old September 6th, 2003, 02:04 PM
jordan314 jordan314 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 jordan314 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the post but I can't see the effect from your link, and I'm using IE 6.0 on a PC! I'm trying for an effect that will work in most browsers.

Reply With Quote
  #13  
Old September 7th, 2003, 04:05 PM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
If you need the effect in multiple places, you could write a JS function to generate a table... pass it the inner HTML of the table as a string argument and make the function output the 9x9 table like kicken suggested... put the function in a .js file and include it in any pages that use it if you need it on more than one page.

Reply With Quote
  #14  
Old September 8th, 2003, 06:35 AM
dang65 dang65 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Wilmslow, Cheshire
Posts: 255 dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
There is another option for curved corners on tables - the Structured Graphic Control. There's an example here - though I've no idea what it looks like in non IE5+ browsers.

That method does allow you to use a script to change the colours in all three different positions:

i) inside the border (the table background);
ii) the table border itself;
iii) outside the border (the page background).

That is not possible with a traditional image where you could only set one of the colours by using a transparent gif and then changing the cell background for whichever colour showed through the transparency.

Although the Structured Graphic option is quite workable and simple, I've never actually used it on a site (apart from demos).

Reply With Quote
  #15  
Old September 8th, 2003, 10:36 AM
f'lar's Avatar
f'lar f'lar is offline
Senior WeyrLeader
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Aug 2003
Location: WI
Posts: 3,767 f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level)f'lar User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 3 Days 17 h 12 m 26 sec
Reputation Power: 675
Send a message via Google Talk to f'lar
My site does it. I modify the html, but I use styles to determine where the images are placed:
http://www.elknet.net/elkjac
It's not perfect, but I can change the color of the border by changing one number in the style sheet, and the border will automatically size itself lenghwise to accomadate whatever I put inside.
__________________
Primary Forums: .Net Development, MS-SQL, C Programming
VB.Net: It's not your father's Visual Basic.

[Moving to ASP.Net] | [.Net Dos and Don't for VB6 Programmers]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS style for rounded table borders?