57 users online (0 members and 57 guests)  


  Results 1 to 4 of 4

Related

  1. IE8 not rendering correct height    Forum: CSS Forum
    Replies: 2
  2. Height form paypal    Forum: CSS Forum
    Replies: 2
  3. Table height issues in IE    Forum: HTML Forum
    Replies: 3
  4. CSS and img height & width    Forum: CSS Forum
    Replies: 1
  5. IE div height query    Forum: CSS Forum
    Replies: 5
  1. #1
    arvindikchari's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    23

    Post dynamically changing height of a div

    Hello,

    I have a PHP Script where for the div containing the logo, the user should be able to specify a height for the logo section, and that div's height should be immediately updated with the new value

    The script can be seen at http://greatbooks.110mb.com/3colnew/

    Please tell me how to implement this in code, the current code, which is not working, is given below:

    header.style.height=value;

    where value is the value in pixels submitted by the user

    Regards
    Arvind
    Last edited by HTML; 07-13-2012 at 09:36 AM.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: dynamically changing height of a div

    Which file is the aforementioned line in?

  3. #3
    arvindikchari's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    23

    Cool Re: dynamically changing height of a div

    Hello,

    The following code makes it work:

    header.style.height=value+"px";


    Apparently, the unit ie, pixels (denoted by the px above) has also to be specified for this to work

    Regards
    Arvind

  4. #4
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: dynamically changing height of a div

    Yes it does.



Tags for this Thread