CSS - height of DIV in IE

Discussion in 'Software' started by Ctrl+Alt+Del, Jan 9, 2005.

  1. Ctrl+Alt+Del

    Ctrl+Alt+Del Private E-2

    Hi,

    Iv got a DIV nested in a DIV. What i would like to do is set the nested div to have the same height as the parent div. Using CSS height: 100% doesn't work because it sets it to 100% of the viewport height (what use is that Micro$oft?) I know there is some javascript that you can use in an expression that will let me get a DIV element by ID but then how do you get it height?

    Also I would like to have something that works for atleast down to IE 5 so i think using expressions is out of the question.

    Any thoughts or code egs would be a great help.

    Thanks
     
  2. goldfish

    goldfish Lt. Sushi.DC


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds