Forum Moderators: open

Message Too Old, No Replies

Tables Problem need some help thanks

table bad position

         

XTM_Driv3r

10:14 am on Aug 24, 2007 (gmt 0)

10+ Year Member



Hi!

I have this little problem whit a position of a table.
The deal is that i have 2 tables inside of one table, now the booht tables are not in the right position that it is suposed to be (on top ) like the image bellow shows you

<no screenshots please>

html code


<td style=" padding-top: 0px;" >
<table border="0" cellpadding="0" cellspacing="0" >
<tr>
<td class="mtl"></td>
<td class="mtc"></td>
<td class="mtr"></td>
</tr>
<tr>
<td class="ml"></td>
<td class="mct" height="557" ><div align="center"><?
if(!isset($site)) $site="news";
//Sichheitsl&uuml;cke beheben
$invalide = array('/','/\/',':','.');
$site = str_replace($invalide,' ',$site);
if(!file_exists($site.".php")) $site = "news";
include($site.".php");
?> </div>
</td>
<td class="mr"></td>
</tr>
<tr>
<td colspan="3" class="mf"></td>
</tr>
</table>

css code


.mct{
background-color:#fefafb;
width:557px;
vertical-align:top;
background-repeat:repeat-y;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #000000;
font-weight: normal;
}

so how do i put it on top like i want to?
(problably a newbie question :)

Any help would be great thanks in advance

[edited by: XTM_Driv3r at 11:05 am (utc) on Aug. 24, 2007]

[edited by: encyclo at 2:01 pm (utc) on Aug. 24, 2007]

XTM_Driv3r

11:11 am on Aug 24, 2007 (gmt 0)

10+ Year Member



ok found the answer for it

on the td responsible for the start of the table i added this


align="center" valign="top" nowrap="nowrap" style=" padding-top: 0px;"

omg guess a little bit more work we can resolve our own problems auch
:)

rocknbil

4:47 pm on Aug 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard XTM, one of the great things here is there's tons of resources on approaching problems differently - I'd just like to suggest you pursue a solution that does not nest tables within tables, as this violates accessibility guidelines. But at the end of the day, a job done is . . . done. :-)