Page 1 of 1

Table Problem

Posted: Tue Jan 29, 2008 5:15 pm
by shaqa
Im confused adding one another table in my current table,
below are my information how i want.
I dont know where to add the colspan, at the begin of table i have add <TD ROWSPAN=4></TD> but at the end im havin a problem.

Code: Select all

    <table align="center" valign="middle"><tr>
    
    <td align="center">
    Image<p>
    <form method="GET" action="index.php">
<font color="#800000"><b><h3><font color="#800000">Logo text</font></b></h3></font></p>
    <table><tr><td>
    <input type="text" name="search" value="Search" size="20" onblur="if(this.value=='') this.value='Search';" onfocus="if(this.value=='Search') this.value='';" /></td><td>
    <INPUT type=submit value="Search"></td></tr></table>
    </form><br>
    <b>My Text</b><br>
<?php echo "<center><br><b>Mp3 te Shkarkuar: </b>" . file_get_contents("data.txt") . "</center>"; ?>
    </td></tr><br>
    <tr><td align="center">
<br>ADS1</td></tr>
    <tr><td>
      <div id="wrapper" class="wrapper">
      Last Search:<br />
       <?php print tag_cloud(); ?>
      </div> 
      </td>
    </tr>
    </table>
and i want to have like this
___________
| |______| |
| |______| |
|_|______|_|
|__________|
Screenshot: http://img212.imageshack.us/img212/8730/samplemn6.jpg

Re: Table Problem

Posted: Tue Jan 29, 2008 5:35 pm
by Christopher
I would recommend finding a free HTML editor that has syntax checking:

Code: Select all

<table align="center" valign="middle">
    <tr>
        <td align="center">Image
        <form method="GET" action="index.php"><font color="#800000"><b>
        <h3><font color="#800000">Logo text</font></h3>
        <table>
            <tr>
                <td><input type="text" name="search" value="Search" size="20"
                    onblur="if(this.value=='') this.value='Search';"
                    onfocus="if(this.value=='Search') this.value='';" /></td>
                <td><INPUT type=submit value="Search"></td>
            </tr>
        </table>
        </form>
        <br/>
        <b>My Text</b><br/>
        <?php echo "<center><br/><b>Mp3 te Shkarkuar: </b>" . file_get_contents("data.txt") . "</center>"; ?>
        </td>
    </tr>
    <br/>
    <tr>
        <td align="center"><br/>
        ADS1</td>
    </tr>
    <tr>
        <td>
        <div id="wrapper" class="wrapper">Last Search:<br />
        <?php print tag_cloud(); ?></div>
        </td>
    </tr>
</table>
 

Re: Table Problem

Posted: Tue Jan 29, 2008 8:17 pm
by shaqa
yes thank you im checking and reparing with Dreamweaver.

How do i creat my table as i want?

Re: Table Problem

Posted: Tue Jan 29, 2008 9:38 pm
by Christopher
shaqa wrote:How do i creat my table as i want?
Everyone uses <div> + CSS these days. There are many tutorials. Most of what you want to do would involve margin and text-align attributes.

Re: Table Problem

Posted: Tue Jan 29, 2008 10:41 pm
by shaqa
The problem that im having is when i fill Search box,
i dont know how to use with div+css i appreciate if you help me with any example creating table..
thnx

Re: Table Problem

Posted: Wed Jan 30, 2008 12:28 am
by matthijs
You don't need a table for that. Just completely remove the whole table.

Code: Select all

 
<form method="GET" action="index.php">
<fieldset>
<label>Search this site</label>
<input type="text" name="search" value="Search" size="20" />
<INPUT type=submit value="Search">
</fieldset>
</form>
 
This is all the code you'll need. Start with this and one by one add /change the styles you want (in css)

Re: Table Problem

Posted: Wed Jan 30, 2008 8:07 am
by shaqa
but i want to have,,maybe i plan to add ads in left and right position ,,this is the reason.

Re: Table Problem

Posted: Wed Jan 30, 2008 12:02 pm
by matthijs
Well if you want other elements you can place them next to the form. Still no need for a table. Positioning with css works fine. If needed, you can always post some code here and people can help

Re: Table Problem

Posted: Wed Jan 30, 2008 3:19 pm
by shaqa
matthijs wrote:Well if you want other elements you can place them next to the form. Still no need for a table. Positioning with css works fine. If needed, you can always post some code here and people can help
i appreciate your reply,
i would to have all of my content at the middle of page.