We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

oibrahim on 01/16/08


Tagged


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

jonhenshaw
stoker


Vanishing borders in IE6 fix!


Published in: CSS 


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

  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;”>

Report this snippet 

You need to login to post a comment.