Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 9th, 2003, 11:43 AM
Registered User
 
Join Date: Aug 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default valign problem occured after inserting a <div>

The code worked fine originally before I inserted the <div> section. All the words were listed in the middle of the table head. The original code is as following:

<tr>
<td align="left" class="titlebarMyOrganizer" height="29" valign="middle" width="*" colspan=""> &nbsp; <b> Notifications </b> &nbsp; <span id="listDataCount"></span> &nbsp;
    <div id="div_option" name="div_option" style="position:absolute; visibility:visible"> ...some code</div>
</td>
</tr>

Then I inserted another <div></div> section into the cell. After I did that, all the words are valigned as 'top' instead of 'middle'. Who could tell me what happened and how I can fix it?
Code that have the problem is listed as following:

<tr>
<td align="left" class="titlebarMyOrganizer" height="29" valign="middle" width="*" colspan="">
<!--************************************************** ************
    //add a div tag here to insert a vertical bar which shows the back to left image
************************************************** ******-->
    <div id="div_LayerSigs" name="div_LayerSigs" style="position:absolute; visibility:hidden;left:0px; bottom:0px; width:31px;z-index:4; height:610px; top:0px" >
          <table id="tbl_sideControl" height="100%" width="100%" bgcolor="#666699" >
               <tr height="25" valign="middle" >
                <td valign="middle" >
                    <IMG alt="" border=0 height=14 id="restoreImg" onclick="directIdentifier='restore';leftRight(this , directIdentifier);" src="/cw/images/blue/fullymax.gif" width=14 >
                </td>
              </tr>
              <tr>
                <td>
                </td>
              </tr>
            </table>
    </div>


&nbsp; <b> Notifications </b> &nbsp; <span id="listDataCount"></span> &nbsp;
    <div id="div_option" name="div_option" style="position:absolute; visibility:visible"> ...some code</div>
</td>
</tr>

Thanks!








Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript with <div> aware Javascript How-To 3 August 25th, 2005 05:57 AM
hide the <div> crmpicco Javascript How-To 1 August 22nd, 2005 09:43 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
scrolling <DIV> anshul Javascript How-To 12 August 4th, 2004 09:51 AM
<A><DIV><TABLE></DIV></A> anshul HTML Code Clinic 2 July 17th, 2004 02:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.