Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    221
    Thanks
    2
    Thanked 0 Times in 0 Posts

    table cell align doesn't work with my code... why??

    none of these aligns work for some reason

    Code:
    <table width="400" border="0" cellspacing="0" cellpadding="0"><tr>
    <td height="20" width="320"></td>
    
    <td width="20" align="right">
    
     <script language="JavaScript" type="text/javascript"><!--
            
            if(firstnum!=lastEntry/4)
            {
            	document.write('<a href="news.html?first_entry=' + (firstnum+20) + ' ">prev</a>');
            }
            else
            {
            	document.write('prev');
            }
     // -->
     </script>
    	
    </td><td width="40" align="center">
    
    <script language="JavaScript" type="text/javascript"><!--
    	document.write((newsData.length/4-(firstnum)) + "-")
            document.write((newsData.length/4-(lastnum+1)))
     //--></script>
    
    </td><td width="20" align="left">
    
    <script language="JavaScript" type="text/javascript"><!--
    	if(lastnum == -1)
            {
            	document.write("next")
            }
            else
            {
            	
            	document.write('<a href="news.html?first_entry=' + earlierpage + ' ">next</a>')
            }
            //-->
    </script>
    
    </td></tr></table>
    can you help me out?

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    The alignments work. It's just that the widths you set for the cells are too small making the left, center and right alignments not quite noticeable.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •