Welcome to Eyes on FF!
>>> Click here to download Final Fantasy Ringtones
Oh no!
 

Post New Thread  Reply
 
LinkBack Thread Tools
Jojee
Former Staff
nutty fruit
Jojee's Avatar
#1
Angry HATE internet explorer coding!!!! Again~

I can't get tables to show right in internet explorer, but they show perfectly in Firefox. I checked and rechecked a million times to make sure I closed all my tags and that they were correct. For example, let's take this:

<table>
<tr>
<td>

Blah blah
<table>
<tr>
<td>
blah
</td>
</tr>
</table>

</td>
</tr>
</table>

Now, IE makes it so that when I close the table tags for the table INSIDE the content, it registers it as closing the original table tags, and that completely screws over the layout. T_T

Does anyone know how to fix this?

(My tables are a lot more complicated than that, but I checked and closed everything right!)



EDIT: Okay. I rewrote a lot of the script and tested, and it's due to this in my header:

table {
width:expression(document.body.clientWid th > 1100? "1100px": "auto" );
}

When I removed it, the tables inside the tables close fine, but it brings out other problems with the table after I exceed the 1100px limit and doesn't actually set a max width. There's no way I can get multiple tables and max-width for tables to be compatible?

Screw you, IE people. I hate you all.

Last edited by Jojee; 04-15-2008 at 02:05 AM.
Old 04-15-2008, 01:48 AM
Reply With Quote
Jojee is offline  
rubah
Site Staff
Cid's Knight
I am not a committee!
rubah's Avatar
Location: Don't forget you're not alone
Default

I would try and spend a few hours helping you if I had immediate access to IE?

I'd say just let the IE users suffer a huge table and run with it.
Old 04-15-2008, 02:15 AM
Reply With Quote
rubah is offline  
Jojee
Former Staff
nutty fruit
Jojee's Avatar
Default

It looks soooo bad though. xD It's not just a huge table, it looks cut off and wrong and disjointed.

Edit: And that's even with the width:expression removed, because I have max-width: 1100px for other browsers.

Edit2: Oh, I know what's up with that. If I eliminate width:expression entirely, I have to redo all of my images, and then it won't look disjointed but will have huge tables. Ugh. Can't I have IE max width and tables? Maybe I'll start looking into redoing all my images.

Edit3: Okay I redid all my images and am just letting IE people have a freaking huge table that drags across the screen if they're on high resolutions. xD Anyone dumb enough to be using IE probably doesn't have a big resolution anyway, right >.>

Still if anyone could figure out how to make IE's width expression and multiple tables compatible, please tell me.

Last edited by Jojee; 04-15-2008 at 02:49 AM.
Old 04-15-2008, 02:19 AM
Reply With Quote
Jojee is offline  
o_O
Site Staff
nerd
o_O's Avatar
Location: New Zealand
Default

Here are two solutions:
1. Instead of defining the style for all tables, define a class and set name or id of the tables to be affected.

2.
HTML Code:
<html>
<head>
<title>lol</title>
<comment>
<style type="text/css">
table {
/* define style for other browsers */
}
</style>
</comment>

<!--[if IE]>
<style type="text/css">
table {
/* Define style for IE */
}
</style>
<![endif]-->
</head>

<body>
</body>
</html>
Old 04-15-2008, 04:00 AM
Reply With Quote
o_O is online now  
Jojee
Former Staff
nutty fruit
Jojee's Avatar
Default

It still makes the tables mess up I think. Anyway thanks xD I think I'll just let IE users see huge tables, they deserve it I hate them. xD

So I have a different question now~ using PHP, I'm making a quiz, right? I'm using arrays for the responses...

$answers_array = array(
1=> " Yes|1
No|2",

etc

So that's question #1. A yes corresponds with result #1, and No corresponds with result #2. Is there any way I can get an answer to correspond with multiple results? I'm really a PHP noob.
Old 04-15-2008, 07:56 AM
Reply With Quote
Jojee is offline  
o_O
Site Staff
nerd
o_O's Avatar
Location: New Zealand
Default

I'm assuming the "1" in "Yes|1" is some piece of data that needs to accompany the "Yes" here (like order, or points, or rank).
You could do something like this:
PHP Code:
$answers_array = array(
    array(
'Y' => 2'N' => 1),
    array(
'Y' => 1'N' => 2),
    array(
'Y' => 1'N' => 2),
    array(
'Y' => 2'N' => 1),
    array(
'Y' => 1'N' => 2),
    array(
'Y' => 1'N' => 2)); 
Then to access your array, use something like:
PHP Code:
foreach ($answers_array as $curr_values) {
    
$y $curr_values['Y'];
    
$n $curr_values['N'];
    if (
$y $n) echo 'Y is greater than N';
    else if (
$y == $n) echo 'Y is the same as N';
    else echo 
'Y is less than N';
    
// Do other stuff with Y and N here

Old 04-15-2008, 01:39 PM
Reply With Quote
o_O is online now  
I'solé
I'solé's Avatar
Location: Somewhere in the USA
Default

Simple solution:
"Will show up better in Firefox".
Old 04-27-2008, 08:36 PM
Reply With Quote
I'solé is offline  
Baloki
Site Staff
Last Exile
Baloki's Avatar
Location: Dreaming a dream~
Default

Originally Posted by I'solé ^
Simple solution:
"Will show up better in Firefox".
People who don't make an effort to code cross-browser or just put a cop-out on their sites shouldn't be allowed to make websites.
Old 04-27-2008, 11:57 PM
Reply With Quote
Baloki is offline  
Post New Thread  Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:07 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
Copyright ©2000 - 2007, Eyes on Final Fantasy.
Sean Robinson Design

Online Games | Scholarships | Tool Enhancers