| | |
Position textarea below table
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 25
Reputation:
Solved Threads: 0
In the following I need/want to alter the field called "TopicBody" to align with the table that appears above it.
No matter whether I tried div or span positioning but I cannot get it working correctly.
Please tell me why.
No matter whether I tried div or span positioning but I cannot get it working correctly.
Please tell me why.
HTML and CSS Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Add help</title> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" <!-- Put IE into quirks mode --> <title><?php echo HOSTDESCRIPTOR ?>: HelpPage</title> <link rel="stylesheet" type="text/css" href="CSS/Help.css" /> <link rel="stylesheet" href="/CSS/custom-theme/jquery-ui-1.7.1.custom.css"/> <link rel="stylesheet" href="/CSS/SiteWide.css"/> <script type="text/javascript" src="/JavaScripts/DWjQuery.js"></script> <script type="text/javascript" src="/JavaScripts/CL/ComponentLoader.js"></script> <script type="text/javascript"> $(document).ready( function() { //load the standard headers. $("#header").LoadComponent("<? echo STANDARD_HEADER;?>"); }); </script> </head> <body bgcolor="#eeeeee"> <div id="container"> <center> <h2>Amend/Delete Help Record</h2><br> <form id="HelpUD" name="HelpUD" action="HelpUpdate.php?UID=<?php echo $ID ?> " method=post enctype="multipart/form-data"> <table style="hidden"> <tr> <td> Record Type:</td> <td> <input type='text' readonly id="RecordType" name="RecordType" value="<?php echo $ParentString ?>" > </td></tr> <tr><td>Topic Title:</td> <td><input type="text" id="TopicTitle" name="TopicTitle" value="<?php echo $TopicName ?> " maxlength="25"> </td> </tr> <tr> <td> Parent:</td> <td> <input type='text' id="Parent" name="Parent" value="<?php echo $Parent ?>" /> </td></tr> </center> </table> Topic Body: <textarea cols="60" rows="10" id="TopicBody" name="TopicBody" value="<?php echo $Topic ?> ></textarea> <p> <font color=red> <?php echo $Message ?> </font> </p> <input type=button value="Back" onclick="BackClick()" /> <input type=button value="Delete" onclick="DeleteHelp()" /> <input type=button value="Update" onclick="UpdateClick()" /> </form> </div> <div id="header"> loading... </div> </body> </html>
Regards,
Alf Stockton www.stockton.co.za
Alf Stockton www.stockton.co.za
this is better the best criticism/advice I can offer is to use a code highlighting editor, notepad2 notepad++ or any of the others, that will show you when you have forgotten to close a quote.
the code is not valid xhtml see the new line 2, there are other bugs, validate by pointing the validator at a test run url, so there is a value in the script variables
this tool http://validator.w3.org/ will help you debug
php Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Add help</title> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" /> <!-- Put IE into quirks mode --> <title><?php echo HOSTDESCRIPTOR ?>: HelpPage</title> <link rel="stylesheet" type="text/css" href="CSS/Help.css" /> <link rel="stylesheet" href="/CSS/custom-theme/jquery-ui-1.7.1.custom.css"/> <link rel="stylesheet" href="/CSS/SiteWide.css"/> <script type="text/javascript" src="/JavaScripts/DWjQuery.js"></script> <script type="text/javascript" src="/JavaScripts/CL/ComponentLoader.js"></script> <script type="text/javascript"> $(document).ready( function() { //load the standard headers. $("#header").LoadComponent("<? echo STANDARD_HEADER;?>"); }); </script> </head> <body bgcolor="#eeeeee"> <div style='text-align:center'> <h2>Amend/Delete Help Record</h2><br> <form id="HelpUD" name="HelpUD" action="HelpUpdate.php?UID=<?php echo $ID ?>" method=post enctype="multipart/form-data"> <table style="hidden"> <tr><td>Record Type:</td> <td><input type='text' readonly id="RecordType" name="RecordType" value="<?php echo $ParentString ?>" > </td></tr> <tr><td>Topic Title:</td> <td><input type="text" id="TopicTitle" name="TopicTitle" value="<?php echo $TopicName ?>" maxlength="25"> </td></tr> <tr><td>Parent:</td> <td><input type='text' id="Parent" name="Parent" value="<?php echo $Parent ?>" /> </td></tr> </table> Topic Body: <textarea cols="60" rows="10" id="TopicBody" name="TopicBody" value="<?php echo $Topic ?>"></textarea> </div> <p><font color='red'><?php echo $Message ?></font></p> <input type='button' value="Back" onclick="BackClick()" /> <input type='button' value="Delete" onclick="DeleteHelp()" /> <input type='button' value="Update" onclick="UpdateClick()" /> </form> </div> <div id="header">loading... </div> </body> </html>
the code is not valid xhtml see the new line 2, there are other bugs, validate by pointing the validator at a test run url, so there is a value in the script variables
this tool http://validator.w3.org/ will help you debug
Last edited by almostbob; Sep 3rd, 2009 at 4:43 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
•
•
Join Date: Jul 2008
Posts: 25
Reputation:
Solved Threads: 0
I appreciate the help and will work on almostbob's suggestions.
Regards,
Alf Stockton www.stockton.co.za
Alf Stockton www.stockton.co.za
•
•
Join Date: Jul 2008
Posts: 25
Reputation:
Solved Threads: 0
OK I have attempted your version which can, with small alterations, be seen at http://www.stockton.co.za/HelpUD.php.
It still does not give me what I wanted.
I would like the text "Topic Body: " to appear at the top of the textarea box.
I also want this Text & textarea to be aligned with the fields above it.
Something similar to http://www.stockton.co.za/Screenshot.png would do fine.
It still does not give me what I wanted.
I would like the text "Topic Body: " to appear at the top of the textarea box.
I also want this Text & textarea to be aligned with the fields above it.
Something similar to http://www.stockton.co.za/Screenshot.png would do fine.
Regards,
Alf Stockton www.stockton.co.za
Alf Stockton www.stockton.co.za
•
•
Join Date: Jan 2009
Posts: 93
Reputation:
Solved Threads: 13
use span to your text
It will help you..
HTML and CSS Syntax (Toggle Plain Text)
<span style="vertical-align: top">Topic Body:</span>
It will help you..
![]() |
Similar Threads
- Parsing error on non existant line (PHP)
- Display values in listbox from db table regarding selected item in listbox? (PHP)
- Change Position (HTML and CSS)
- How can I get output in a table by using the document ID? (JavaScript / DHTML / AJAX)
- form submit redirect help, please (HTML and CSS)
- CSS Div's For Myspace (HTML and CSS)
- Calendar window is not coming for the Dynamic rows (JavaScript / DHTML / AJAX)
- question (C)
- Error: Expected ')' (Site Layout and Usability)
- Contact forms using ASP? (ASP)
Other Threads in the HTML and CSS Forum
- Previous Thread: <tr> link problem in chrome and firefox
- Next Thread: Use of properties inside <tr> tags
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






