| Author |
Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
hey, im trying to get a table to sit inside a longer table (vertically) however it sits in the middle how do i get it to sit at the very top?
this is the code
<table width="150" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="054ff"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<th scope="row"><a href="Index.php"><span class="style2">Home</span></a></th>
</tr>
<tr>
<th scope="row"><span class="style2">Forums</span></th>
</tr>
<tr>
<th scope="row"><span class="style2"><a href="Verses.html">Verses</a></span></th>
</tr>
<tr>
<th scope="row"><span class="style2">Link1</span></th>
</tr>
<tr>
<th scope="row"><span class="style2">Link2</span></th>
</tr>
</table></th>
</tr>
</table> </td>
 |
|
| Author |
RE: Table in Tables Issues |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
HTML: INFORMATION
CSS: LAYOUT
DIVIDE.
FOR THE INTERNET.

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
yeh hi... could your repeat that in a constructed sentence?
 |
|
| Author |
RE: Table in Tables Issues |
spyware
Member

Posts: 4190
Location: The Netherlands
Joined: 14.04.07 Rank: God Warn Level: 90
|
|
|
The-Scarecrow wrote:
yeh hi... could your repeat that in a constructed sentence?
Read it again and interpret my post as a constructed sentence, why should I do all the hard work?

"The chowner of property." - Zeph Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term. - Carl Sagan Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor? - Ebert |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
Man, your code is so ugly. You've even got an extra table mixed in there that has no use and doesn't get terminated. I took the liberty of fixing it up a bit for you:
<table width="150" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td bgcolor="054ff">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">
<tr>
<th scope="row"><a href="Index.php"><span class="style2">Home</span></a></th>
</tr>
<tr>
<th scope="row"><span class="style2">Forums</span></th>
</tr>
<tr>
<th scope="row"><span class="style2"><a href="Verses.html">Verses</a></span></th>
</tr>
<tr>
<th scope="row"><span class="style2">Link1</span></th>
</tr>
<tr>
<th scope="row"><span class="style2">Link2</span></th>
</tr>
</th>
</tr>
</table>
</td>
</tr>
</table>
For the future, tabbing makes things much more readable.
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
yeh still don't get it, what meaning are you giving to divide? and am i dividing css from html or interenet from html and css. or are you meaning divide as in a 'a great gap' and saything that the internet is very far away from css and html? or are they 3 completly different ideas judging by where the full stops are put in. but as a whole how does this help me?
 |
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
thanks a heap!
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
|
The-Scarecrow wrote:
yeh still don't get it, what meaning are you giving to divide? and am i dividing css from html or interenet from html and css.
He's saying to use css for layout and html for content. Divide those into two separate things.
And you should read: http://www.w3schools.com/tags/tag_DIV.asp
Edited by ynori7 on 24-04-09 05:13 |
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
while your on a roll....
<td bordercolor="00066" bgcolor="033CC"><p align="center" class="style1"><?php include"random.php";?></p> </td>
how come my php text isnt white and centered?
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
|
The-Scarecrow wrote:
while your on a roll....
<td bordercolor="00066" bgcolor="033CC"><p align="center" class="style1"><?php include"random.php";?></p> </td>
how come my php text isnt white and centered?
I don't know what it says in your random.php file, but your code you showed there doesn't say anything about the text color. Also, the text is centered, but it's centered in the table, not the page.
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
do you have msn? i could show you on that.
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
|
The-Scarecrow wrote:
do you have msn? i could show you on that.
ynori7 on yahoo.
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
i don't have it 
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
The-Scarecrow wrote:
i don't have it 
Yahoo and MSN can talk to each other. But if you can't figure it out, I'm also on the IRC right now.
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
how do i get IRC working? also what side does the scblockedript to make the php in the center of the box go on? server side or index side? can i just use html/css tags or are there php tags?
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
|
The-Scarecrow wrote:
how do i get IRC working?
You need to make an exception in your browser. Don't know about chrome or FF, but in IE you just click on the little security notice at the top of the window and say "allow blocked content".
also what side does the scblockedript to make the php in the center of the box go on? server side or index side?
If you're referring to the align="center" attribute, or the center tags, then they can be on either side.
can i just use html/css tags or are there php tags?
Give me an example of a php tag besides <?php and ?>. I'm curious.
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
<p align="center" class="style1"><?php include"random_quote.php";?></p>
why doesn't that sit in the center of the textbox?
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
It should. Here's the test I ran:
test2.php:
<html>
<p align="center" class="style1">
<?php
include("test1.php");
?>
</p>
</html>
test1.php:
<?php
echo "<HTML>test</HTML>";
?>
|
|
| Author |
RE: Table in Tables Issues |
The-Scarecrow
Member

Posts: 163
Location: Australia
Joined: 18.05.07 Rank: Mad User |
|
it sits vertically central but not horizontally this is the whole text box.
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0" bordercolor="#EFEFEF">
<tr>
<td bordercolor="00066" bgcolor="033CC"><p align="center" class="style1"><?php include"random_quote.php";?></p> </td>
</tr>
</table>
 |
|
| Author |
RE: Table in Tables Issues |
ynori7
Future Emperor of Earth

Posts: 1481
Location: #valhalla
Joined: 08.10.07 Rank: Diabolical |
|
|
The-Scarecrow wrote:
it sits vertically central but not horizontally this is the whole text box.
What do you mean vertically central? The table is just one row and one column.
And mine was horizontally centered. I replaced your php file in the include with the test1.php I used earlier. So unless something in your included file is interfering, it should work.
|
|