Archives

Permalink

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:

foo foo foo

zap
zoom

bar bar

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:
0px;">zap<br/>zoom</p></div></div>
<div style="width: 20%; float: left;">bar bar</div>
</div>
<div style="clear: both;"></div>
Share
Permalink

Hey, Massachusetts and California people. Are you going to vote in the primary? (Tuesday, Feb 5)

If so, who for and why?

Share
Permalink

For those of you who love plots and Venn diagrams

Share

NetBank

RIP NetBank. I miss you immensely.

Share

Google vs Adobe

Why is it Google can search the entire Internet in less time than it take Adobe Reader to search a PDF?

Share
Permalink

Have you read or heard that Hillary won New Hampshire?

I call bullshit. They both got 9 NH delegates. They tied.

Share

This explains so much…

Share

a question for css wizards

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.

Share

Obama’s victory speach

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"

Share
Permalink

Placebo: The Wonder Drug All Other Drugs Are Compared Against!

Share