Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 9th, 2003, 11:43 AM
Registered User
 
Join Date: Aug 2003
Location: Reston, VA, USA.
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!



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:00 AM.


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