how know the size of a div,table and window?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

how know the size of a div,table and window?

Post by srdva59 »

hi,
i looking for function to
know the size of a div,table and window/content

then i want move one picture to the bottom of the table/div

i already try use the align: bottom etc and that work when i load the page
for the first time.
but when i change the content without reloading the page the image simply
don´t go to the bottom, so i looking fo a way using javascript to force
the image position to the bottom-
thanks for your help
:)
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: how know the size of a div,table and window?

Post by JAB Creations »

You can manually change the styling...

Code: Select all

document.getElementById('test').style.width='100px';document.getElementById('test').style.width='100%';document.getElementById('test').style.backgroundColor='#faa';
Though you'll much better off changing the class...

Code: Select all

document.getElementById('test').className='my_class';
Post Reply