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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason7899
    New Member
    • Mar 2008
    • 59

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

    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
    :)
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    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.

    Comment

    • Jason7899
      New Member
      • Mar 2008
      • 59

      #3
      ok, thanks for your ideia i will try that
      :)

      Comment

      • Jason7899
        New Member
        • Mar 2008
        • 59

        #4
        hi,
        i try this but don´t work:

        Code:
        background-image:url('smiley.gif');
        background-repeat:no-repeat;
        background-attachment:fixed;
        background-position:right;
        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
        Last edited by acoder; Jul 23 '09, 09:43 AM. Reason: Added [code] tags

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          There's no background-bottom property. Set the background-position to bottom.

          PS. please use [code] tags.

          Comment

          Working...