By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,695 Members | 1,601 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,695 IT Pros & Developers. It's quick & easy.

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

P: 59
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
:)
Jul 22 '09 #1
Share this Question
Share on Google+
4 Replies


hsriat
Expert 100+
P: 1,654
Don't try JavaScript. You need to have some top-padding in your div, or set the image as background of the div with background-position as bottom center.
Jul 22 '09 #2

P: 59
ok, thanks for your ideia i will try that
:)
Jul 23 '09 #3

P: 59
hi,
i try this but donīt work:

Expand|Select|Wrap|Line Numbers
  1. background-image:url('smiley.gif');
  2. background-repeat:no-repeat;
  3. background-attachment:fixed;
  4. background-position:right;
  5. background-bottom:center;
the image dont move to the bottom of the div
what i doing wrong?
thanks for your help

ps: i want use a div not a background of the body
Jul 23 '09 #4

acoder
Expert Mod 15k+
P: 16,027
There's no background-bottom property. Set the background-position to bottom.

PS. please use [code] tags.
Jul 23 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.