Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005

    CSS help: Clear: both not working in Opera

    It works in firefox, IE 6 but not opera.

    please help me see what is wrong

    <div style="width:100%">
       <div style="width:50%;float:left;">...</div>
       <div style="width:50%;float:right">...</div>
       <div style="clear:both"></div>
    <div style="margin-top:20px">...</div>
    In the above code, the bolded tags do not work in Opera. The div clearer doesn't seem to work.

    Opera does not show the margin. How do i fix this?

  2. #2
    Join Date
    Dec 2005
    <div style="clear:both; height:0px"></div> works in opera

    but it breaks in IE6.

    any solution that works in all 3 browsers?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts