Alfred
Alfred

Reputation: 21396

Disable table cell resizing

I have a table which has two cells (<td>) which as a width of 0px. I inserted one <div> in them with some text. The cells with 0px width then expanded showing the content. I don't want this happen. I want those two cells to hide as if there is no content inside. I don't want to do this using visibility or overflow attribute.

You can see an example here

How can I do this?

Upvotes: 0

Views: 650

Answers (1)

350D
350D

Reputation: 11449

http://jsfiddle.net/cNmNH/4/

#frame2, #frame3 {
    text-indent:-9999px;
}

Upvotes: 2

Related Questions