![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I've been reading lots of rounded corners table tutorials lately, because I'm a Perl guru, not an HTML guru. :-) |
|
So far all of the examples I've seen have edges with narrow angles, which fit easily into a single corner cell. Simple stuff. Piece of cake. By now I can do them in my sleep while juggling hippopotamuses and hanging upside down. But this one is different. In this particular case, it takes three corner edges to hold each curve (not two, not four, and five is right out!) Each one of those cells is 35x35 pixels, and that is exactly how much room I allocate for them in the table. Then I let the browser decide on the size of the other cells, based on its current width. But lo and behold, the results are not pretty: http://perlguru.net/misc/ex3.htm |
|
As you can see, Firefox renders the table perfectly |
#2
| |||
| |||
|
|
Stephen Takacs <perlhaq (AT) gmail (DOT) com> wrote: I've been reading lots of rounded corners table tutorials lately, because I'm a Perl guru, not an HTML guru. :-) Rounded corners are styling, this question belongs in news:comp.infosystems.www.authoring.stylesheets crossposted and follow-up set So far all of the examples I've seen have edges with narrow angles, which fit easily into a single corner cell. Simple stuff. Piece of cake. By now I can do them in my sleep while juggling hippopotamuses and hanging upside down. But this one is different. In this particular case, it takes three corner edges to hold each curve (not two, not four, and five is right out!) Each one of those cells is 35x35 pixels, and that is exactly how much room I allocate for them in the table. Then I let the browser decide on the size of the other cells, based on its current width. But lo and behold, the results are not pretty: http://perlguru.net/misc/ex3.htm That page seems to contain nothing more than a screenshot http://perlhaq.50webs.com/misc/ex3.png As you can see, Firefox renders the table perfectly |
#3
| |||
| |||
|
|
If so then its an unusual effect you are aiming for, do you really want solid cell borders to show with a rounded border rendered inside the table? |
#4
| |||
| |||
|
|
If so then its an unusual effect you are aiming for, do you really want solid cell borders to show with a rounded border rendered inside the table? No, but for right now the table border is set to "1" so that it's easy to tell exactly how each column is being rendered. Ultimately that switch is going to get turned off. |
|
The only thing that concerns me is IE6's rendition of columns 2 and 8, which are too wide unless I explicitely define a width for each and every single cell in the table. And I can do that, but it just feels kludgy. Maybe that's the only way though. |
#5
| |||
| |||
|
|
Then what are you aiming for? If it's just 2 rounded corners then there are countless examples on the web showing how to do that with proper markup and CSS, all you have to do is google. |
#6
| |||
| |||
|
|
Then what are you aiming for? If it's just 2 rounded corners then there are countless examples on the web showing how to do that with proper markup and CSS, all you have to do is google. That's true, but each and every tutorial I've managed to come accross has tables with narrow-angled corners. For this particular project they want the table rendered very precisely, in fact exactly like Firefox renders it in that screenshot, including the wide angled curves which each take up three cells. Simply having one cell for each corner doesn't work, because it creates too much gap between the top/bottom table borders and the first/last cell rows. |
#7
| |||
| |||
|
|
A rough demo http://homepage.ntlworld.ie/spartanicus/temp.htm |
#8
| |||
| |||
|
|
Spartanicus schrieb: A rough demo http://homepage.ntlworld.ie/spartanicus/temp.htm Nice! Just for interest: Is there a special reason you use the i element for the borders? |
#9
| |||
| |||
|
|
A rough demo http://homepage.ntlworld.ie/spartanicus/temp.htm Nice! Just for interest: Is there a special reason you use the i element for the borders? |
#10
| |||
| |||
|
|
Rounded corners are styling, this question belongs in news:comp.infosystems.www.authoring.stylesheets crossposted and follow-up set |
![]() |
| Thread Tools | |
| Display Modes | |
| |