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

help with display:none problems in firefox

i'm building a little web app for my research project. url is here:

http://www.cognitivecomposites.com/wtf/

it validates as xhtml/strict according to:

http://validator.w3.org/check?uri=ww...ites.com%2Fwtf

this page works in IE. it doesn't in firefox 1.5 or opera 8.5.2. when i click the "show" checkboxes, the
section disappers, as desired but when clicked again, the redisplayed section/s is
too narrow; shifted to the left in firefox; centered in opera. further, in firefox, if i click "show"
repeatedly", i get white space that grows!! really weird. i've spent too many hours
debugging this. i'd really appreciate another set of eyes. many thanks.

Mar 15 '06 #1
2 1983
4MLA1FN wrote:
i'm building a little web app for my research project. url is here:

http://www.cognitivecomposites.com/wtf/

it validates as xhtml/strict according to:

http://validator.w3.org/check?uri=ww...ites.com%2Fwtf

this page works in IE. it doesn't in firefox 1.5 or opera 8.5.2. when i click the "show" checkboxes, the
section disappers, as desired but when clicked again, the redisplayed section/s is
too narrow; shifted to the left in firefox; centered in opera. further, in firefox, if i click "show"
repeatedly", i get white space that grows!! really weird. i've spent too many hours
debugging this. i'd really appreciate another set of eyes. many thanks.


Because you are setting the display attribute of TR elements to 'inline'
when you make them visible again, which is totally inappropriate.

Use '' (empty string) so they can return to their default (which is the
general strategy unless you have some specific value to set it to).

Firefox uses the CSS 2 properties for table elements, so using '' allows
the TR to return to 'table-row'. IE doesn't implement them, so the TR
returns to whatever it uses (inline? block?).

Have a look at the CSS 2 values for the display property here:

<URL:http://www.w3.org/TR/CSS21/visuren.html#propdef-display>


--
Rob
Mar 15 '06 #2
On Thu, 16 Mar 2006 00:42:08 +1000, RobG <rg***@iinet.net.au> wrote:
Use '' (empty string) so they can return to their default (which is the
general strategy unless you have some specific value to set it to).


damn, you rock! thanks, that did the trick. funny thing is that i originally
had the empty string early in development and changed it to inline after
seeing there was no empty-string option. so i punted and used inline. :)
i really appreciate your help.
Mar 15 '06 #3

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

Similar topics

13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
2
by: Erwin Moller | last post by:
Hi group, I have this obscure problem that really needs to be fixed, but I am out of ideas. Because the original script is very big, I'll try to summarize its functionality. Setup: - many...
2
by: Jake Barnes | last post by:
Imagine I've this block of HTML: <p>Alex Schein Mailing List <input type="checkbox" name="newslettersToUse" value="133156"> (<a href="mcControlPanel.php"...
3
by: Stan Brown | last post by:
Posted by Pierre Blais in the current RISKS Digest: http://catless.ncl.ac.uk/Risks/24.24.html#subj9 -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/...
2
by: Good Man | last post by:
Hi there I have quite a bit of experience with CSS but I am stumped by the following: http://www.electricphase.com/example/example1.php (uses http://www.electricphase.com/example/test1.css) ...
8
by: VK | last post by:
Hi, given a block element with some content and a link, is it possible to set this element display to none by CSS only? It has to be done only once. It is an absolutely positionned element so...
7
by: khinester | last post by:
Hello, I have the following template that basically does the following: User select Country, then a sub-list is generated with Regions and then this returns the Counties ############### ...
15
by: cssExp | last post by:
hello, Rather than going on a wild explanation on what's the the problem, it'll be much quicker and easier if i let you look at it yourself, so I'll post my page source (actual contents taken out,...
2
hsriat
by: hsriat | last post by:
All the elements which were set as style={display:none} are still being shown in Safari (Apple's Browser)... But when the same style is applied with javascript on an event, it hides the element....
0
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
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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
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.