Unexplained white space when using clear:both

前端 未结 3 1643
逝去的感伤
逝去的感伤 2020-12-15 10:47

I\'m building a Joomla 1.7 website and I\'m using a gallery plugin. This works out real nice except for one problem. In the gallery plugin you can insert a description that

3条回答
  •  执笔经年
    2020-12-15 11:30

    You must have a sidebar on the left or the right with a floating element in it (or which is floating itself).

    The clear:both causes the element to be under that floating element.

    See the problem here: http://jsfiddle.net/9Razw/

    One solution is to set overflow: hidden on #phocagallery or a parent of the clear:both element.

提交回复
热议问题