Vanishing borders in IE6 fix!


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!--
  2. After hours of trying different floats, padding, clearing etc, the fix is despairingly simple - just put a position:relative element in the div that contains the border declaration, as follows:
  3. -->
  4.  
  5. <div style= "position:relative; border: 1px solid #ccc; padding-left: 20px; padding-right:8px;”>

URL: http://www.blotdesign.com/writing/knocked-out-border-by-float-in-ie6

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.