473,748 Members | 6,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="cel l.gif">IC Number:&nbsp;</td>
<td align="center" valign="middle" background="cel l.gif">{STOCK_N O}</td>
<td width=31 background="vb. gif"><img src="blank.gif" ></td>
<td align="right" background="cel l.gif">Serial Number:&nbsp;</td>
<td colspan=2 align="center" valign="middle" background="cel l.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">I C 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">S erial 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 2647
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.infos ystems.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
23096
by: Mel | last post by:
how can i have a rounded edge button in my forms using CSS ? thanks Mel
2
3181
by: Konrad | last post by:
Hi This is maybe simple question but how to render DataGrid and Tables with rounded corners? Thanks Konrad
8
2424
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. Granted they do use a transparent gif so they don't need multiple colored gifs, but I thought most developers shun the table rounded corner method. Any thoughts why? Is it easier to maintain or have a higher browser support? Thanks.
6
5500
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
8462
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 tricks for gridview because I want to use the sorting.
1
2571
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 not use the "standard" rounded corner method of sliced images for the corners (since that would only allow a certain color to match) I tried using a corner-rounding js tool from http://openrico.org, but it failed miserably (in both IE and Opera) ...
4
3347
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 bottom graphic, but all I want to have in my DIV is a TreeView coontrol. Can anyone send some code. PWS
2
1828
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 4, a problem occure when I try to use it in a table. What happen is that a multi windows opens overlapping one over the other in one cell and in the other cell the script was not activated at all, no rounded corners (IE7). What I want to get is that...
6
10837
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 I wanted to make the corners a bit rounded (otherwise it will look like an old legacy app). Is this possible in wpf? The reason I wanted to use a polygon was because I will bind an adorner to each point so the user can drag the corners around to...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9324
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8243
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.