Jon Haupt solved the CSS problem I hadpreviously posted, of making a box that is just large enough to fit the things inside it, rather than expanding to the size of the surrounding box.
It turns out that using "float: left" or "float: right" has this effect.
Here is an example of the solution, where the middle box has a tight-fitting background:
and the HTML:
<div style="width: 100%;">
<div style="width: 20%; float: left;">foo foo foo</div>
<div style="width: 20%; float: left;"><div style="background-color:#f00; float: left; padding: 0px; margin: 0px;"><p style="margin:
<div style="width: 20%; float: left;">bar bar</div>
<div style="clear: both;"></div>
Hey, Massachusetts and California people. Are you going to vote in the primary? (Tuesday, Feb 5)
If so, who for and why?
RIP NetBank. I miss you immensely.
Why is it Google can search the entire Internet in less time than it take Adobe Reader to search a PDF?
Have you read or heard that Hillary won New Hampshire?
I call bullshit. They both got 9 NH delegates. They tied.
I have been told, repeatedly, that I should layout my pages using CSS rather than tables. There are lots of good reasons for this.
However, there's one thing that that I can do with tables, that I can't figure out how to do with CSS. With tables, I can specify a cell has width 1px, and the actual width of the box will be just large enough to contain the element in the cell. With div's, the width of the box expands to the size of the enclosing element.
The first 8 minutes are pretty standard. After that he kicks it up a notch.
Also, some of you may be interested in Lawrence Lessig's endorsements of Obama, calling him "the real deal"