Get floated divs to pass each other in 2 column layout (sort of like Facebook Timeline)

I'm creating a site that has two columns with content of variable height stacking into both columns. The client really wants it to look like the Facebook Timeline, where the content flows nicely in... Read more

7e4c895d-ac7f-4dfa-a47d-acee2f254f58

2 answers Latest by Marc Muszynski over 7 years ago

How do I put a clear button inside my HTML text input box like the iPhone does?

Got here via [SO][1] which unfortunately didn't bring a useful answer but did point me to doctype, thanks for that ! Like the original Q I need a way to code a clear button in a mobile safari i... Read more

1 answer Latest by Ktash almost 8 years ago

Clearing floats that follow a cleared float (in IE)

I have encountered the problem where a float that follows a float that clears: left doesn't act right. Before I confuse you anymore let me just post a link to the documented problem: [http://www.br... Read more

05b366d6-d0fe-4b1a-b478-05ce33a2b0aa

1 answer Latest by Ralph Stone over 8 years ago

Tony B 86

Why does .clearfix suddenly add a margin to the bottom of its container?

I have been using the following clearfix for many web sites and for some reason on my most recent one it adds a margin to the bottom of its container. It still expands the container div as it shoul... Read more

No answers yet

Using floats, how do I create a cross-browser grid of variable-height cells?

I have an unordered list containing several items, each with a variable amount of text inside. Each item has a fixed-width, and my list is also fixed-width to ensure that 4 'columns' are displayed.... Read more

E64746d9-0e5c-414d-94b8-e21a0d2d0fa6

3 answers Best answer by Rob Crowther