Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-21-2002, 11:33 AM   PM User | #1
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
Cool Round Table Corners

Hi,

is there any style attribute to make the corners in tables round? Also is it possible to define the 'level of roundness'?

DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Old 06-21-2002, 11:45 AM   PM User | #2
SYP}{ER
Regular Coder

 
Join Date: Jun 2002
Location: Ontario, Canada
Posts: 183
Thanks: 0
Thanked 0 Times in 0 Posts
SYP}{ER is an unknown quantity at this point
<style type="text/css">
-moz-border-radius: 30px;
</style>

I'm 99.9% sure of that being the right way to do it Only works in Mozilla though, unless NS6 or 7 can do it now, too.
__________________
Offtone.com - In the works...
SYP}{ER is offline   Reply With Quote
Old 06-21-2002, 12:11 PM   PM User | #3
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
Hi Sypher,

so can I use:

<table style="-moz-border-radius: 30px;">
<tr>
<td>

</td>
</tr>
</table>

or

<table -moz-border-radius="30px">
<tr>
<td>

</td>
</tr>
</table>

Also does it work in IE?

DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Old 06-21-2002, 01:43 PM   PM User | #4
requestcode
Regular Coder

 
Join Date: Jun 2002
Posts: 626
Thanks: 0
Thanked 0 Times in 0 Posts
requestcode is an unknown quantity at this point
To make it Cross Browsers you will probably have to use an image in each corner to do that.
requestcode is offline   Reply With Quote
Old 06-21-2002, 01:50 PM   PM User | #5
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 593
Thanks: 1
Thanked 19 Times in 19 Posts
jalarie is an unknown quantity at this point
To handle a RoundTable corner, call King Arthur and ask him to send over a knight and sword. He'll cut off anything that gets in the way! <grin>
jalarie is offline   Reply With Quote
Old 06-21-2002, 04:54 PM   PM User | #6
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
The CSS3 specs provide for a property known as "border-radius".

When Mozilla has partial support for a property, but not entirely valid, it appends a -moz- in front of it.

The CSS3 border-radius value's call for two measurements, one is for the width of the curve, the other for the height.

The Mozilla -moz-border-radius value only accepts one measurement, which defines both the width and the height.

There's the entire explanation behind it.
(Another CSS3 property is opacity:, and I am letting you figure out why Mozilla has -moz-opacity ).


Anyway, it *must* be used in a style definition, not directly as an HTML attribute dhtmlhelp.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-21-2002, 04:55 PM   PM User | #7
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Oh, and that should work in all versions of NS6 (most at least, if not all), NS7, K-meleon, Galeon, Beonex, Mozilla, etc.

It is used for some chrome widgets in the XUL of the window (in some themes).
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-21-2002, 08:27 PM   PM User | #8
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
Hi,

does anyone know how I can achieve this in IE:



<table style="-moz-border-radius: 30px;">
<tr>
<td>

</td>
</tr>
</table> ?????

or

<table -moz-border-radius="30px">
<tr>
<td>

</td>
</tr>
</table> ??????



DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Old 06-21-2002, 08:29 PM   PM User | #9
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
If you read the replies, you'd know you can't do it using that for IE
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 06-21-2002, 10:16 PM   PM User | #10
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
What should I use then?

DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Old 06-21-2002, 10:41 PM   PM User | #11
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Images, precisely four - one for each corner.

And some extra table layout work to boot.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-21-2002, 11:56 PM   PM User | #12
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
Hi everyone,

thank you for your help. It doesn't look like there is a small kb solution to my problem. Hopefully they will decide to remove the -moz- one day and make it IE compatible.

DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Old 06-22-2002, 12:22 AM   PM User | #13
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
For the ie solution if you choose to use images you don't need 4 different ones, you can also use:

document.getElementById("image_id").style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotat ion="1")

1 = 90 degrees.

I think this works in ie4+. I know it works in ie6

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/properties/rotation.asp
x_goose_x is offline   Reply With Quote
Old 06-22-2002, 12:34 AM   PM User | #14
dhtmlhelp
Regular Coder

 
Join Date: Jun 2002
Location: London, UK
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
dhtmlhelp is an unknown quantity at this point
Hi xgoose,

that is very clever, I'll have a go at it.

thanks,

DHTMLHELP
dhtmlhelp is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:32 AM.


Advertisement
Log in to turn off these ads.