Amra
Amra

Reputation: 25268

How to get min-width or similar to work on whole page? IE7 and 8

I am creating a Web page, the problem is that when I shrink the window of the browser, the tables and the div will shrink at the size they need to fit the content, and it makes the page look terrible.

I have to declare a width of 90% for all elements, but when I declare min-with:700px; to all elements (div and tables) do not obey and keeps shrinking to fit the content.

Is there anything I am missing? is it IE7 playing arround?

I would appreciate any help to fix this issue (with no JavaScript if possible).

Upvotes: 0

Views: 147

Answers (1)

Skilldrick
Skilldrick

Reputation: 70889

min-width doesn't work right in IE. Have a look at this article for some help with this issue. There are two hacks there of differing complexity.

Another discussion of this topic here.

Upvotes: 1

Related Questions