Jan
Jan

Reputation: 8141

How to make width at 100% on a table work in IE8?

table {
  width: 100%;
}

doesn't seem to do anything at all on IE8.

Upvotes: 1

Views: 2568

Answers (2)

Akira Dawson
Akira Dawson

Reputation: 1267

Try table{ table-layout:fixed; }

I had the same issue making the table 100% width in IE8.

Upvotes: 4

Jan
Jan

Reputation: 8141

I knew the answer, just didn't find it on SO, I think it belongs here.

You have to set the margin to make it work:

table {
  width: 100%;
  margin: 0px;
}

Upvotes: 3

Related Questions