Internet Explorer 6 and 7: floated elements expand to 100% width when they contain a child element floated right. Is there a workaround?

后端 未结 8 949
滥情空心
滥情空心 2020-12-13 06:43

I\'ve got a parent div floated left, with two child divs that I need to float right.

The parent div should (if I understand th

8条回答
  •  爱一瞬间的悲伤
    2020-12-13 07:14

    Firstly, why aren't you using inline styles?

    I'd use this to target IE with a separate css file:

    
    

    I know this isn't a direct question, but IE is ALWAYS a pain to deal with! Most designers/developers that I know will make a totally new stylesheet for IE.

提交回复
热议问题