CSS: table min-width
-
Hi, its very simple: <table style="min-width:1180px"...> works on Firefox and IE8, but not on IE7 What can I do to make it work on Ie7?
What is use if min-Width ? You can directly fix the width of table.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hi, its very simple: <table style="min-width:1180px"...> works on Firefox and IE8, but not on IE7 What can I do to make it work on Ie7?
For IE7 / IE6 you need to use css expression().... But mind that even a mouse move will evaluate the expression. Let see how I am doing this : Place this as css
.t-min-wid {
width: expression((document.body.clientWidth < 1180)? "1180px" : "auto"); /*min width for IE7 and below */
min-width: 1180px; /* Min width for Firefox and IE8 */
}Now apply
<table class="t-min-wid">
Your min width will be set for all browsers. ;) ;)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript