Chovy’s Blog

Clearing DIVs and Floats

Tue, September 27, 2005 — Category: Personal

Ok, here is YAWTCF implementation I came across via a coworker.
The theory is basically using the CSS pseudo class “:after” on the main div wrapper (the one containing the 3 columns) see example, and applying a height to it.
Read the full explanation with notes.
/* clearfix positioniseverything.com */#Main:after { content: “.”; […]

Ok, here is YAWTCF implementation I came across via a coworker.

The theory is basically using the CSS pseudo class “:after” on the main div wrapper (the one containing the 3 columns) see example, and applying a height to it.

Read the full explanation with notes.

/* clearfix positioniseverything.com */
#Main:after {
content: “.”;
display: block;
height: 0;
clear: both;
visibility: hidden;
}

#Main {
width: auto;
border: 1px solid #ff0;
background: url(’bg.gif’) 20% 0% repeat-y;
height: 1%;
}

  • Post Clearing DIVs and Floats to del.icio.us
  • Post Clearing DIVs and Floats to digg
  • Post Clearing DIVs and Floats to Furl
  • Add Clearing DIVs and Floats to YahooMyWeb
  • Simpify!
  • Post Clearing DIVs and Floats to shadows
  • Post Clearing DIVs and Floats to Spurl
  • Post Clearing DIVs and Floats to BuddyMarks
  • Submit Clearing DIVs and Floats to Slashdot

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.