PDA

View Full Version : [Yay] I coded something in expandable tables! [Help Me Please] + Rep



Nicholas
28-10-2006, 04:31 PM
Wee!
I coded something in expandable tables today.
It was really easy thanks to Joe .C. & FallenAsh [Whom you may not know]
However, it's not up to tip top scratch so I need your help to make the code perfect! :eusa_danc

Here's what it looks like in FireFox:
Problems:

The text is vertically centered :(
Both boxes expand to the same size, I do not want this I want one box to be a different size to the other [E.g. if the navigatort is smaller]http://i14.tinypic.com/4ggmckp.png
Link (http://i14.tinypic.com/4ggmckp.png)

Here's what it looks like in IE 7.
Problems:

As you can see it's 'muffed up'
The text aligned againhttp://i13.tinypic.com/3y6ats5.png
Link (http://i13.tinypic.com/3y6ats5.png)

Code?
Here's my code [I used Photoshop & Dreamweaver]

<HTML>
<HEAD>
<TITLE>Untitled-1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #444444;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style></HEAD>
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<div align="center">
<p>
<!-- ImageReady Slices (Untitled-1) -->
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<TABLE WIDTH=150 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD COLSPAN=9>
<IMG SRC="images/index_01.gif" WIDTH=150 HEIGHT=15 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=4>
<IMG SRC="images/index_02.gif" WIDTH=5 HEIGHT=135 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/index_03.gif" WIDTH=69 HEIGHT=34 ALT=""></TD>
<TD ROWSPAN=4>
<IMG SRC="images/index_04.gif" WIDTH=3 HEIGHT=135 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/index_05.gif" WIDTH=69 HEIGHT=34 ALT=""></TD>
<TD ROWSPAN=4>&nbsp;</TD>
</TR>
<TR>
<TD background="images/index_07.gif" width="5" height=100%></TD>
<TD background="images/index_08.gif" width=59>Hey</TD>
<TD background="images/index_09.gif" width="5" height=100%></TD>
<TD background="images/index_10.gif" width="5" height=100%></TD>
<TD background="images/index_11.gif" width="59">The content goes here and the box should expand to the size of your content. Ok, whilst we wait I'll tell you about me, I am called Myke and I enjoy web designing :] It's great fun, I could die for it, I'd like to thanks FallenAsh and Joe .C. they have both helped me greatly. Right, let's check has it expanded yet?</TD>
<TD background="images/index_12.gif" width="5" height=100%>
<IMG SRC="images/index_12.gif" WIDTH=5 HEIGHT=81 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="images/index_13.gif" WIDTH=69 HEIGHT=5 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/index_14.gif" WIDTH=69 HEIGHT=5 ALT=""></TD>
</TR>
<TR>
<TD COLSPAN=3>
<IMG SRC="images/index_15.gif" WIDTH=69 HEIGHT=15 ALT=""></TD>
<TD COLSPAN=3>
<IMG SRC="images/index_16.gif" WIDTH=69 HEIGHT=15 ALT=""></TD>
</TR>
</TABLE>
<img src="images/index_06.gif" width=4 height=135 alt="">
<!-- End ImageReady Slices -->
</div>
</BODY>
</HTML>

If you can help, + Rep will be awarded.
P.s. This layout was just a quicky.

RNelson
28-10-2006, 04:39 PM
Hehe maybe you can help me code in expandables :)

uber
28-10-2006, 04:40 PM
Use valign="top"
and height=""
in the navbar

Joe!
28-10-2006, 04:49 PM
Can i ask, where did you learn how to do expandable?

myke
28-10-2006, 04:55 PM
ROFL! Sorry guys, that was me, I didn't see who was logged in as me and Nicholas are brothers and both share the two pcs so.. Sorry, that post was me :> Joe, a friend tought me :> Thanks Dan, I'll try that.

Edit: :o! Dan you're a star! It worked, + Rep. Also can anyone help me on any of the other queries?
Also, Dan, I can't use 'height=' because I want it to expand?

Joe!
28-10-2006, 04:57 PM
O MYKE GO ON MSN NOW PLS

myke
28-10-2006, 05:00 PM
OMG. It's him. I thought it was someone else. ;] Can anyone help..?

Joe!
28-10-2006, 05:02 PM
ERR myke why ignore mi -cri- anyway ermm do you do using the attributes but like percentages?

myke
28-10-2006, 05:10 PM
Can anyone help? Joe, I'm not ignoring you ;//

Joe!
28-10-2006, 05:47 PM
Im joking around myke LOL

JoeComins
28-10-2006, 06:21 PM
To make it clear, Joe.C isnt me. Nothing to do with me.

I would surgest learning CSS and using XHTML/CSS using ALL divs to do it, MUCH MUCH easier

myke
28-10-2006, 07:42 PM
*Pssst* Joe it is you :p You inspired me ;]

:P Anyway, any more help and Joe, I know CSS o_O

Want to hide these adverts? Register an account for free!