473,396 Members | 1,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

rounded corners table (with wide angles)

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, while IE6 does its
own thing and disregards my 35-pixel width for columns 2 and 8. The
weird thing is that the problem basically goes away if I specify a width
(in pixels) for each and every single cell in the table. But how lame
is that? Now you have a table that's hardcoded and doesn't change its
size in sync with the browser.

So my question to you is whether or not there's a way around this
madness? I'm aware that IE7 and Firefox have built-in support for
rounded corners in CSS which might be applicable here, but alas I must
be able to support older browsers...

This is the HTML for the table in question. It's ugly, and it certainly
needs cleaning up and CSS'ing, but it's otherwise working code.

<table width=99% border="1" cellpadding=0 cellspacing=0>
<tr>
<td width=35 height=35 background="tlc.gif">1<img src="blank.gif"></td>
<td width=35 height=35 background="tlr.gif">2<img src="blank.gif"></td>
<td colspan=1 height=35 background="tb.gif">3<img src="blank.gif"></td>
<td colspan=3 height=35 background="tb.gif">456<img src="blank.gif"></td>
<td colspan=1 height=35 background="tb.gif">7<img src="blank.gif"></td>
<td width=35 height=35 background="trl.gif">8<img src="blank.gif"></td>
<td width=35 height=35 background="trc.gif">9<img src="blank.gif"></td>
</tr>
<tr>
<td width=35 height=35 background="tll.gif"><img src="blank.gif"></td>
<td colspan=2 align="right" background="cell.gif">IC Number:&nbsp;</td>
<td align="center" valign="middle" background="cell.gif">{STOCK_NO}</td>
<td width=31 background="vb.gif"><img src="blank.gif"></td>
<td align="right" background="cell.gif">Serial Number:&nbsp;</td>
<td colspan=2 align="center" valign="middle" background="cell.gif">{SERIAL_NUMBER}</td>
<td width=35 background="trr.gif"><img src="blank.gif"></td>
</tr>
<tr>
<td width=35 height=35 background="lb.gif"><img src="blank.gif"></td>
<td colspan=2 align="right">IC Number:&nbsp;</td>
<td align="center" valign="middle">{STOCK_NO}</td>
<td width=31 background="vb.gif"><img src="blank.gif"></td>
<td align="right">Serial Number:&nbsp;</td>
<td colspan=2 align="center" valign="middle">{SERIAL_NUMBER}</td>
<td width=35 background="brr.gif"><img src="blank.gif"></td>
</tr>
<tr>
<td width=35 height=35 background="blc.gif"><img src="blank.gif"></td>
<td width=35 height=35 background="blr.gif"><img src="blank.gif"></td>
<td colspan=1 height=35 background="bb.gif"><img src="blank.gif"></td>
<td colspan=3 height=35 background="bb.gif"><img src="blank.gif"></td>
<td colspan=1 height=35 background="bb.gif"><img src="blank.gif"></td>
<td width=35 height=35 background="brl.gif"><img src="blank.gif"></td>
<td width=35 height=35 background="brc.gif"><img src="blank.gif"></td>
</tr>
</table>

--
Stephen Takacs <pe*****@gmail.com http://perlguru.net/
4149 FD56 D078 C988 9027 1EB4 04CC F80F 72CB 09DA
Aug 15 '06 #1
1 2629
Stephen Takacs <pe*****@gmail.comwrote:
>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
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?

--
Spartanicus
Aug 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Mel | last post by:
how can i have a rounded edge button in my forms using CSS ? thanks Mel
2
by: Konrad | last post by:
Hi This is maybe simple question but how to render DataGrid and Tables with rounded corners? Thanks Konrad
8
by: TheCornjerker | last post by:
I've been looking into what method I should use to show rounded corners (and I've found a lot). My question is why does Google seems to mostly use the table method with an image in each corner. ...
6
by: Schraalhans Keukenmeester | last post by:
I want to achieve the following: A small image in each of the corners of a box, like below: +-------------------------------+ | + | + | + | + | + | +
5
by: Cindy Lee | last post by:
Is there anyway to put rounded corners on the grid views? When I bring it up in the brower I need to have rounded corners. There are some tricks I can do to regular html tables, but is there any...
1
by: kidelectric | last post by:
The issue I am having is that I would like to be able to drag-and-drop div elements that have rounded corners.* Since these elements will be dynamically created (including background color), I could...
4
by: PWS | last post by:
I am despertely trying get a DIV to look like a box with rounded corners. I can find load of examples this where the first line of text has the top graphic and the last line of text has the...
2
by: raknin | last post by:
Hi, I am looking for a css and js solution for making rounded corners, with no images. Currently I tried to use nify corners as describe in http://www.html.it/articoli/nifty/index.html in example...
6
by: moondaddy | last post by:
I need to be able to make polygons with rounded corners. This will be to draw group outlines around shapes in a diagramming tool in wpf. all angles in the polygon will be 90 degrees, but somehow...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.