473,400 Members | 2,145 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,400 software developers and data experts.

CSS / Table breaks in one browser but works everywhere else

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 tested it works fine, but in Safari (1.3.2) the
table breaks between cells causing extra space to appear. The nature of
this project is such that it HAS to work in Safari.

You can see the page (no graphics, embedded styles) at:
http://staging.digitaloilfield.com/cssproblem.html

Can someone help me figure out what is happening? I'm going nuts and my
boss is getting impatient...

Leif

Oct 18 '06 #1
6 1780
On 2006-10-18, di*****@yahoo.com <di*****@yahoo.comwrote:
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 tested it works fine, but in Safari (1.3.2) the
table breaks between cells causing extra space to appear. The nature of
this project is such that it HAS to work in Safari.

You can see the page (no graphics, embedded styles) at:
http://staging.digitaloilfield.com/cssproblem.html

Can someone help me figure out what is happening? I'm going nuts and my
boss is getting impatient...
I tried it in Konqueror 3.4.2, which is based on mostly the same code as
Safari, and it worked OK.

I don't have Safari itself. So I can't reproduce your problem, it looks
OK to me.

The only thing I can suggest trying is take away the "width=100%" on the
<tdelements, but leave the width=100% on the table itself. The cells
should fill the complete width anyway. Perhaps those 100%s are causing
Safari some confusion.
Oct 19 '06 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-10-18, di*****@yahoo.com <di*****@yahoo.comwrote:
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 tested it works fine, but in Safari (1.3.2) the
table breaks between cells causing extra space to appear. The nature of
this project is such that it HAS to work in Safari.

You can see the page (no graphics, embedded styles) at:
http://staging.digitaloilfield.com/cssproblem.html

Can someone help me figure out what is happening? I'm going nuts and my
boss is getting impatient...

I tried it in Konqueror 3.4.2, which is based on mostly the same code as
Safari, and it worked OK.

I don't have Safari itself. So I can't reproduce your problem, it looks
OK to me.

The only thing I can suggest trying is take away the "width=100%" on the
<tdelements, but leave the width=100% on the table itself. The cells
should fill the complete width anyway. Perhaps those 100%s are causing
Safari some confusion.
First thing to do is fix all the errors. Safari is beaut this
way, it has poor error correction. CSS is strewn with failures to
assign to assign units to numbers. The css is above and below the
head. Look if you don't believe it. The doctype is below the
<htmland so on...

--
dorayme
Oct 19 '06 #3
On 2006-10-19, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
>On 2006-10-18, di*****@yahoo.com <di*****@yahoo.comwrote:
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 tested it works fine, but in Safari (1.3.2) the
table breaks between cells causing extra space to appear. The nature of
this project is such that it HAS to work in Safari.

You can see the page (no graphics, embedded styles) at:
http://staging.digitaloilfield.com/cssproblem.html

Can someone help me figure out what is happening? I'm going nuts and my
boss is getting impatient...

I tried it in Konqueror 3.4.2, which is based on mostly the same code as
Safari, and it worked OK.

I don't have Safari itself. So I can't reproduce your problem, it looks
OK to me.

The only thing I can suggest trying is take away the "width=100%" on the
<tdelements, but leave the width=100% on the table itself. The cells
should fill the complete width anyway. Perhaps those 100%s are causing
Safari some confusion.

First thing to do is fix all the errors. Safari is beaut this
way, it has poor error correction. CSS is strewn with failures to
assign to assign units to numbers. The css is above and below the
head. Look if you don't believe it. The doctype is below the
<htmland so on...
When I said it "looks OK", I meant the output not the source.

The source does look OK, but as you say there are units missing and the
doctype is in the wrong place.

You're right, the OP should fix those errors first, there is a chance
that has something to do with it.
Oct 19 '06 #4
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
On 2006-10-19, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
The only thing I can suggest trying is take away the "width=100%" on the
<tdelements, but leave the width=100% on the table itself. The cells
should fill the complete width anyway. Perhaps those 100%s are causing
Safari some confusion.
First thing to do is fix all the errors. Safari is beaut this
way, it has poor error correction. CSS is strewn with failures to
assign to assign units to numbers. The css is above and below the
head. Look if you don't believe it. The doctype is below the
<htmland so on...

When I said it "looks OK", I meant the output not the source.

The source does look OK, but as you say there are units missing and the
doctype is in the wrong place.

You're right, the OP should fix those errors first, there is a chance
that has something to do with it.
I was not in any way criticising you, Ben. Just really saying
something to OP...

--
dorayme
Oct 19 '06 #5
On Thu, 19 Oct 2006 18:29:44 +1000, dorayme
<do************@optusnet.com.auwrote:
>Safari is beaut this
way, it has poor error correction. CSS is strewn with failures to
assign to assign units to numbers.
Assuming those two sentences are intended to be related: CSS is quite
explicit that user agents MUST ignore (for example) declarations with
illegal values. "Poor error correction" for CSS does not exist AFAIK
anywhere other than Internet Explorer.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Oct 20 '06 #6
In article <oq********************************@4ax.com>,
Stephen Poley <sb******************@xs4all.nlwrote:
On Thu, 19 Oct 2006 18:29:44 +1000, dorayme
<do************@optusnet.com.auwrote:
Safari is beaut this
way, it has poor error correction. CSS is strewn with failures to
assign to assign units to numbers.

Assuming those two sentences are intended to be related: CSS is quite
explicit that user agents MUST ignore (for example) declarations with
illegal values. "Poor error correction" for CSS does not exist AFAIK
anywhere other than Internet Explorer.
Not quite _intended_ to be related ... sloppy of me! And good
point you make.

I was thinking the other bits were important cause, when i listed
also:
The css is above and below the
head. Look if you don't believe it. The doctype is below the
<htmland so on...

and was just meaning: "fix up all the errors and then see..."

--
dorayme
Oct 20 '06 #7

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

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
20
by: Andy Fish | last post by:
Hi All, I have a nice easy table and/or CSS formatting problem for any gurus out there. I have a table with 4 columns - no "width" attribute on anything. Some rows have 4 cells in (call...
4
by: Rob Freundlich | last post by:
I have some servlet-generated tabular data that I need to present, so I'm using an HTML Table. In some cases, it can be quite large. I'm flushing the servlet output every N lines to push the data...
3
by: Pavan | last post by:
Hi All, I am having a wierd problem while displaying my panel. My code is something like this <table> <tr> <td width=100>label</td> <td width=100>label</td> <td width=100>label</td> <td...
5
by: joelbyrd | last post by:
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the...
8
by: Gianni Rondinini | last post by:
hi all, i'm here again. i couldn't find/understand this on w3c css2 recommendation and documentation, then here i ask. i decided to still use some tables in my pages for some forms. i played...
2
by: cluce | last post by:
i have a table sorting feature on my website that works everywhere else except in firefox. but the example code does work in firefox. this has me stumped. The problem is the links in the table...
3
by: pbrunson | last post by:
For two days I have tried every combination of code I could find / think of. I have a simple update I want to do to a field, but I am getting a data type miss match error when I set the WHERE to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
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...

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.