473,322 Members | 1,409 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,322 software developers and data experts.

Table collapses on Safari

Hi - I generate a table using code similar to the following (simplified),
and this works fine for most browsers/platforms. For Safari on Mac, the
table displays 'vertically collapsed' for rows where there is no 'content'
in the cells. If I put a token " " in each otherwise empty cell, the
table displays fine.

What's going on here? Shouldn't asp.net detect the browser type and figure
out this stuff itself? If so, is this a 'browsercaps' issue? Any
info/suggestions appreciated.

Paul.
-----------------
For n = 1 To gblNumRows
Dim tRow As New TableRow
tRow.Style("height") = "16"

With tRow.Cells
For C = 1 To gblNumCols
Dim tCell1 As New TableCell
.Add(tCell1)
Next
End With
TT.Rows.AddAt(n - 1, tRow)
Next
Nov 19 '05 #1
3 1309
<tr><td></td></tr> is not valid HTML, <tr><td> </td></tr> is. IE will render
both similar, but you cannot guaruntee that all browsers will.

Hope that helps.

Jason Lind

"Paul W" wrote:
Hi - I generate a table using code similar to the following (simplified),
and this works fine for most browsers/platforms. For Safari on Mac, the
table displays 'vertically collapsed' for rows where there is no 'content'
in the cells. If I put a token " " in each otherwise empty cell, the
table displays fine.

What's going on here? Shouldn't asp.net detect the browser type and figure
out this stuff itself? If so, is this a 'browsercaps' issue? Any
info/suggestions appreciated.

Paul.
-----------------
For n = 1 To gblNumRows
Dim tRow As New TableRow
tRow.Style("height") = "16"

With tRow.Cells
For C = 1 To gblNumCols
Dim tCell1 As New TableCell
.Add(tCell1)
Next
End With
TT.Rows.AddAt(n - 1, tRow)
Next

Nov 19 '05 #2
Interesting, but doesn't really address my question. Should asp.net render
the cells as <td> </td> if it detects a non-IE browser? I've installed a new
BrowserCaps section from slingfive but it still renders as <td><td> for
safari and Netscape. Any further pointers appreciated.

Paul.
"Jason L Lind" <Ja********@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
<tr><td></td></tr> is not valid HTML, <tr><td> </td></tr> is. IE will
render
both similar, but you cannot guaruntee that all browsers will.

Hope that helps.

Jason Lind

"Paul W" wrote:
Hi - I generate a table using code similar to the following (simplified),
and this works fine for most browsers/platforms. For Safari on Mac, the
table displays 'vertically collapsed' for rows where there is no
'content'
in the cells. If I put a token " " in each otherwise empty cell, the
table displays fine.

What's going on here? Shouldn't asp.net detect the browser type and
figure
out this stuff itself? If so, is this a 'browsercaps' issue? Any
info/suggestions appreciated.

Paul.
-----------------
For n = 1 To gblNumRows
Dim tRow As New TableRow
tRow.Style("height") = "16"

With tRow.Cells
For C = 1 To gblNumCols
Dim tCell1 As New TableCell
.Add(tCell1)
Next
End With
TT.Rows.AddAt(n - 1, tRow)
Next

Nov 19 '05 #3
Datagrid for instance will put there. But the way you are doing it you have
to manually write that in.

Jason

"Paul W" wrote:
Interesting, but doesn't really address my question. Should asp.net render
the cells as <td> </td> if it detects a non-IE browser? I've installed a new
BrowserCaps section from slingfive but it still renders as <td><td> for
safari and Netscape. Any further pointers appreciated.

Paul.
"Jason L Lind" <Ja********@discussions.microsoft.com> wrote in message
news:7C**********************************@microsof t.com...
<tr><td></td></tr> is not valid HTML, <tr><td> </td></tr> is. IE will
render
both similar, but you cannot guaruntee that all browsers will.

Hope that helps.

Jason Lind

"Paul W" wrote:
Hi - I generate a table using code similar to the following (simplified),
and this works fine for most browsers/platforms. For Safari on Mac, the
table displays 'vertically collapsed' for rows where there is no
'content'
in the cells. If I put a token " " in each otherwise empty cell, the
table displays fine.

What's going on here? Shouldn't asp.net detect the browser type and
figure
out this stuff itself? If so, is this a 'browsercaps' issue? Any
info/suggestions appreciated.

Paul.
-----------------
For n = 1 To gblNumRows
Dim tRow As New TableRow
tRow.Style("height") = "16"

With tRow.Cells
For C = 1 To gblNumCols
Dim tCell1 As New TableCell
.Add(tCell1)
Next
End With
TT.Rows.AddAt(n - 1, tRow)
Next


Nov 19 '05 #4

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

Similar topics

4
by: Adam | last post by:
Hi all, OK, I'm baffled. I have a menu in a table which I've just realized is "breaking apart" in Safari: http://www.fitcityforwomen.com/00-intro/index.html Yet when I plunk the menu by...
2
by: Josh Renaud | last post by:
I'm working on a site and ran into a little trouble with Safari. Here are the relevant links: page: http://www.joshrenaud.com/fredbear/contact.html css: ...
5
by: Josh Renaud | last post by:
I'm still trying to solve a problem I have experienced in Safari. This is my third post on the subject. I'm hoping someone can shed some light. The problem is that, in Safari, a table with no...
1
by: dumblede | last post by:
Hello fellows, i would like to center a 800px wide 600px high content area without using frames. I have "come up" with the following solution so far. It works under IE 6.0, Firefox 1 (under...
2
by: Mike | last post by:
My page populates a table with a list of names and other information from a JavaScript object. I receive changes (adds, change & delete) to that list, convert it into a JavaScript object. I do...
11
by: Norman L. DeForest | last post by:
Am I misunderstanding the CSS specifications or is Firefox (version 1.0.6) (and Opera) doing the wrong thing? It appears that Firefox 1.0.6 includes the border in width calculations for tables...
13
by: Giggle Girl | last post by:
Hi there, I am having a problem with the behavior of Firefox, where lefthand column content is not resized properly after it is "collapsed" and then "re-expanded". An online demo is available...
6
by: digleif | last post by:
I'm struggling to fix an annoying CSS problem. I've built a nav bar in a table and use css to control the hover state, which colours the background of the table cell. In every browser I've...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.