Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Self-Clearing Fix

You’ll recall that the “self-clearing” method for clearing the floated image in the image/title/description block does not work in IE, as we explained back in Chapter 4. Because IE doesn’t support the :after pseudo-class, we need an alternate way of handling self-clearing floats for those browsers. Because we’re keeping IE fixes and hacks separate from our clean CSS that we’ve previously written, it makes sense to add the fix here.

Let’s add the necessary fixes to allow IE 5, 6, and 7 to self-clear any floats that happen in <dl class="feature">, just as we had discussed in Chapter 4:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint