Table Problem

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Table Problem

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Table Problem

Post 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>
 
(#10850)
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: Table Problem

Post by shaqa »

yes thank you im checking and reparing with Dreamweaver.

How do i creat my table as i want?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Table Problem

Post 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.
(#10850)
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: Table Problem

Post 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
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: Table Problem

Post 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)
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: Table Problem

Post by shaqa »

but i want to have,,maybe i plan to add ads in left and right position ,,this is the reason.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Re: Table Problem

Post 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
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: Table Problem

Post 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.
Post Reply