JavaScript and client side scripting.
Moderator: General Moderators
shaqa
Forum Commoner
Posts: 62 Joined: Mon Aug 13, 2007 9:11 am
Post
by shaqa » Tue Jan 29, 2008 5:15 pm
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
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Tue Jan 29, 2008 5:35 pm
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
Post
by shaqa » Tue Jan 29, 2008 8:17 pm
yes thank you im checking and reparing with Dreamweaver.
How do i creat my table as i want?
Christopher
Site Administrator
Posts: 13596 Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US
Post
by Christopher » Tue Jan 29, 2008 9:38 pm
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
Post
by shaqa » Tue Jan 29, 2008 10:41 pm
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
Post
by matthijs » Wed Jan 30, 2008 12:28 am
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
Post
by shaqa » Wed Jan 30, 2008 8:07 am
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
Post
by matthijs » Wed Jan 30, 2008 12:02 pm
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
Post
by shaqa » Wed Jan 30, 2008 3:19 pm
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.