
-----------------------------------
Homer_simpson
Mon Aug 25, 2003 9:09 pm

manual center alignment
-----------------------------------
well i figured to make an image be on the center of screen i can do this:


 
ass.style.left=(screen.availWidth/2)-200


but how can i do that to a table?

-----------------------------------
Blade
Mon Aug 25, 2003 9:54 pm


-----------------------------------
.... if this is what you mean.....

 
   
     
      My
     
   
   
     
      Table
     
   
   
     
      Is
     
   
   
     
      Aligned
     
   
   
     
      In
     
   
   
     
      the
     
   
   
     
      Center
     
   


didnt really understand the question lol..

-----------------------------------
octopi
Mon Aug 25, 2003 10:17 pm


-----------------------------------
This should work:




Centered Tables





     
      
        
          
            this
            table
            &nbsp;
            &nbsp;
            &nbsp;
          
          
            &nbsp;
            &nbsp;
            should
            &nbsp;
            &nbsp;
          
          
            &nbsp;
            &nbsp;
            &nbsp;
            be
            &nbsp;
          
          
            &nbsp;
            &nbsp;
            &nbsp;
            &nbsp;
            centered
          
          
            &nbsp;
            on
            the
            screen
            &nbsp;
          
        
      
    



 
  document.getElementById('maintable').setAttribute('height',document.body.clientHeight-30); 
  document.getElementById('maintable').setAttribute('width',document.body.clientWidth-20); 



That javascript codes not NS compatible. It shouldn't be hard to find the netscape values though.

-----------------------------------
Homer_simpson
Mon Aug 25, 2003 11:39 pm


-----------------------------------
get element by id!!!!! that's the one...!i couldn't name a table but i can give it an id... :D thx octopi....

-----------------------------------
Homer_simpson
Tue Aug 26, 2003 12:38 am


-----------------------------------
now take a look at the menu i created :D
http://backstabbers.no-ip.com
