|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
strange table problem
This appears to be strictly a formatting/style problem. I built a page using validated XHTML Strict and, of course, it displays at it should in IE6:
http://computerslayer1.spymac.com/formpics/IE---1.gif http://computerslayer1.spymac.com/formpics/IE---2.gif In Opera 8, it displays for the most part, but the table containing the AV/Periphrial radio buttons is shrunk and aligned to the left. Then, when one of the radio buttons are selected, it expands, and the right side of the table appears to be missing. http://computerslayer1.spymac.com/fo.../opera---1.gif http://computerslayer1.spymac.com/fo.../opera---2.gif Firefox 1.0.4 displays the tables in much the same was as opera, however, the right side is not missing, like in Opera 8. http://computerslayer1.spymac.com/fo...firefox--1.gif http://computerslayer1.spymac.com/fo...firefox--2.gif Any ideas, guys? I'm stuck. here's the code: PHP Code:
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
|
|
|
|
|
|
#2 |
|
Moderator
Staff
Premium Member
Join Date: Aug 2003
Location: Richmond, VA
Posts: 7,835
|
I just might be my not being able to find it but where do you define the width of the outer table - the table that surrounds the AV and Perhipherals box?
kram
__________________
"For today, goodbye. For tomorrow, good luck. And forever, Go Blue!"
University of Michigan President Mary Sue Coleman |
|
|
|
|
|
#3 |
|
Member (13 bit)
Join Date: Mar 1999
Posts: 6,791
|
For me Opera 8 has been somewhat buggy, so maybe that has something do while it is not displaying the table correctly. It also seems to have trouble parsing "~" in links. For some reason it takes out the next character after the "~". Sorry I couldn't help more.
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
I doubt it's *just* opera, since both browsers are having difficulty with the code.
table id="AVPeriphsOptions" is the outermost table |
|
|
|
|
|
#5 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
I tried looking at your code .. talk about nesting in divs and tables and divs and ....
why not just create a class for your tables that you wish to use with a particular style. Sorry couldn't be much more helpful, I'm feeling kinda dizzy now
|
|
|
|
|
|
#6 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
hmm...now that you mention it...I probably should strip down the tables since I'm using CSS and not HTML for alignment and positioning.
Guess I'll do that tomorrow since I've gone bleery eyed looking at this and other code I'm working on. Thanks for the assist so far
|
|
|
|
|
|
#7 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
ok, I rebuilt the page, but am still having similar problems.
Here's a screenshot of firefox with the web tools extension, which is outlining all the cells so you can see what's going on. http://computerslayer1.spymac.com/fo...firefox--3.gif Everything in the table id="ComputerOptions" is aligned to the left, and the nested tables are not expanding to 100%. Any ideas? PHP Code:
Last edited by Force Flow; 06-17-2005 at 10:22 AM. |
|
|
|
|
|
#8 |
|
It can never be too quiet
Join Date: May 2004
Location: Burlington, Ontario
Posts: 1,090
|
I removed my first suggestion... it was a little incorrect.
![]() I believe my edit is the solution: EDIT: I just noticed... in the function "function doShow(elementId)" you are setting the display property to "block", which displays it at a set width to the contents. Try leaving it as ".style.display = '';" as shown below and take a look. HTML Code:
function doShow(elementId){
document.getElementById(elementId).style.display = '';
__________________
Athlon XP 2800+ • Asus A7N8X (nVidia Nforce2) • Radeon 9600 Pro 256MB • 2x512MB KVR DDR PC3200 Dual Channel • 120GB Seagate 7200RPM 8MB • 160GB WD 7200RPM 8MB • Liteon DVD±RW DL • AOpen DVD±RW DL • Vantec Ion2 350W PSUSend me your picture for the Member Photo Gallery Last edited by Stryker; 06-17-2005 at 11:07 AM. |
|
|
|
|
|
#9 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Nothing shows up when I change it to what you suggested.
[edit]: Yahoooo! Got it working! I had to enclose the CompuerOptions table in a div tag, and hide/show the div tag instead of the table. After that, it worked perfectly ![]() Thanks guys
Last edited by Force Flow; 06-17-2005 at 02:23 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|