Anchor tag becomes non-working link in a div with float: right;

后端 未结 7 2199
迷失自我
迷失自我 2020-12-25 14:58

I have a link inside a div that floats to the right of the screen. The link does not work in FF or Chrome, but works in IE (have only tested with IE8).

The simplest

7条回答
  •  [愿得一人]
    2020-12-25 15:24

    ul#menu
    {
        position:relative;
        overflow:auto;
    }
    

    appears to fix it.

    I believe its because the floats aren't cleared, and you haven't specified any widths, so the two floated elements are "overlapping".

提交回复
热议问题