Web Analytics Made Easy -
StatCounter Child height equals parent height - CodingForum

Announcement

Collapse
No announcement yet.

Child height equals parent height

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Child height equals parent height

    It is possible?

    Example:
    <div id="outerDiv" style="height:100px;">
    <div id="innerDiv">
    </div>
    </div>

    I wish what innerDiv has the same height what outerDiv, exists some expecific css to this?

    Regards

  • #2
    Yes, but Unsupported by IE6
    http://www.w3schools.com/css/css_pseudo_classes.asp. You probably have to use js for this
    Hrvoje
    Croatiankid designs
    Downtown host

    Comment


    • #3
      Setting innerDiv's height to 100% would have the same effect would it not? As 100% of the parent element would be 100px.
      markaylward.co.uk

      Comment


      • #4
        Thanks, help a lot

        Comment

        Working...
        X