Premium forums

Floated elements

  • RichardAD
    RichardAD avatar

    28 May 2012 (Link to this post)

    When my tab contains some elements that are floated they appear, however, the tab background is the wrong color because the tab height is 0.
    http://jsfiddle.net/RichardAD/h6SLH

    Any suggestions on making even floated stuff look like it is in the tab?
  • Iliana Nikolova
    Iliana Nikolova avatar

    29 May 2012 (Link to this post)

    Hello Richard,

    You could resolve the collapsing parent issue as set the CSS property overflow:hidden or overflow: auto to the tabs markup elements. For example: 
    <div id='Tab1' style="overflow: auto">

    For convenience I updated your jsFiddle example


    Regards,
    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Read FAQ or see Kendo UI in action!

Launch Demos