/    Sign up×
Community /Pin to ProfileBookmark

IE is screwing up my tables ><

[b]fixed[/b]
I decided to use a CSS solution.

I made a tables design in Mozilla, and all was good, and then I tested it in IE and all hell exploded. (This would not be the first time IE killed something I made.)

Below is my tables code, and then a link to a screenshot of what IE does to it. Notice how my round corners are not appearing where they’re supposed to?

[code]<table width=”100%” height=”100%” cellspacing=”0″ bgcolor=”#005826″>

<!– FIRST LAYER –>
<tr>
<td rowspan=”5″ width=”15″ bgcolor=”#005826″><!– green ext –></td>
<td width=”15″ bgcolor=”#005826″><!– green –></td>
<td colspan=”5″ height=”25″>
<!– PUT TOP-LEVEL TABS HERE –>
</td>
<td width=”15″ bgcolor=”#005826″><!– green –></td>
<td rowspan=”5″ width=”15″ bgcolor=”#005826″><!– green down to footer –></td>
</tr>

<!– SECOND LAYER –>
<tr>
<td width=”15″ height=”25″ bgcolor=”#F6E791″ class=”corner”>
<img src=”imgs/corner_1a.gif” alt=”” />
</td>
<td width=”15″ bgcolor=”#F6E791″><!– yellow –></td>
<td colspan=”3″ bgcolor=”#F6E791″ height=”25″>
<!– PUT 2ND-LEVEL TABS HERE –>
</td>
<td width=”15″ bgcolor=”#F6E791″><!– yellow –></td>
<td width=”15″ height=”25″ class=”corner” bgcolor=”#F6E791″ align=”right”>
<img src=”imgs/corner_1b.gif” alt=”” />
</td>
</tr>

<!– 3RD LAYER –>
<tr>
<td rowspan=”3″ width=”15″ bgcolor=”#F6E791″><!– yellow ext –></td>
<td width=”15″ height=”25″ class=”corner” bgcolor=”#CFCFCF”>
<img src=”imgs/corner_2a.gif” alt=”” />
</td>
<td width=”15″ bgcolor=”#CFCFCF”><!– gray –></td>
<td bgcolor=”#CFCFCF” height=”25″>
<!– PUT 3RD-LEVEL TABS HERE –>
</td>
<td width=”15″ bgcolor=”#CFCFCF”><!– gray –></td>
<td width=”15″ height=”25″ class=”corner” bgcolor=”#CFCFCF” align=”right”>
<img src=”imgs/corner_2b.gif” alt=”” />
</td>
<td rowspan=”3″ width=”15″ bgcolor=”#F6E791″><!– yellow ext –></td>
</tr>

<!– TOP OF CONTENT AREA –>
<tr>
<td rowspan=”2″ width=”15″ bgcolor=”#CFCFCF”><!– gray ext –></td>
<td width=”15″ height=”15″ class=”corner” bgcolor=”#FFFFFF”>
<img src=”imgs/corner_3a.gif” alt=”” />
</td>
<td bgcolor=”#FFFFFF” height=”15″><!– white –></td>
<td width=”15″ height=”15″ class=”corner” bgcolor=”#FFFFFF” align=”right” class=”right”>
<img src=”imgs/corner_3b.gif” alt=”” />
</td>
<td rowspan=”2″ width=”15″ bgcolor=”#CFCFCF”><!– gray ext –></td>
</tr>

<tr>
<td bgcolor=”#FFFFFF” colspan=”3″ valign=”top” id=”content”>
<h1>Header 1</h1> … etc
</td>
</tr>

<!– BEGIN FOOTER HTML –>
<tr>
<td colspan=”9″ height=”12″ bgcolor=”#F5F5F5″>
</td>
</tr>
<tr>
<td colspan=”9″ height=”22″ id=”footer”>
…footer stuff
</td>
</tr>
</table>[/code]

[url=http://img.photobucket.com/albums/v172/lamei/iesucks.gif]screenshot[/url]

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonOct 15.2004 — Obvious question:

Why are you using tables for layout in the first place?

Especially when this effect would be so easy to create with a CSS based layout and a few backgrounds. Granted there would be quite a few nested <div>'s but they would do no harm, the HTML would be very much smaller as well.
Copy linkTweet thisAlerts:
@tzhouauthorOct 16.2004 — I couldn't think of a solution that would be so precise. Someone needs to be able to put tabs along the tops of those "layers"; if the layers were just there for aesthetic purposes, a few margins or paddings would have done it.

...On second thought, I may have not thought hard enough, or trusted enough in the power of CSS. In this case CSS may still be the lesser evil, although I think I'm stuck in a rut with trying to put a centered row of tabs across the top of each div. However, I think I'll put that issue in the CSS forum.

Thanks, I guess, for enlightening me. I've been using CSS based layouts for a while, but I wasn't sure how useful it would be for something like this.
Copy linkTweet thisAlerts:
@PeOfEoOct 16.2004 — layers are inaccessible. You can acheive the same affects with a server side language and just have the page refresh. Or you can use divs with the visible attribute or even alter the z-index of a div.
Copy linkTweet thisAlerts:
@David_HarrisonOct 16.2004 — [i]Originally posted by tzhou [/i]

[B]CSS may still be the lesser evil[/B][/QUOTE]
Why is it evil at all?

Well, if you want a centred list of tabs (that I assume are links), you can do something like this:

[upl-file uuid=1a79ef93-59a9-462a-8ef7-ac686ba72c94 size=1kB]tabs.txt[/upl-file]
Copy linkTweet thisAlerts:
@PeOfEoOct 18.2004 — [i]Originally posted by lavalamp [/i]

[B]Why is it evil at all?



Well, if you want a centred list of tabs (that I assume are links), you can do something like this: [/B]
[/QUOTE]
Even if they are not if you just played with the visible attribute (made the unopeneed tabs invisible with js on page load, and positioned them with js on page load) they could still be nice and sleak and accessible. They should still be accessible because without js the layer would never be set to visible=false/had their z-index changed, and they would not be layed over eachother. Just my hypothesis.
Copy linkTweet thisAlerts:
@chrismartzOct 18.2004 — change the tables to css
×

Success!

Help @tzhou spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...