Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. CSS: table min-width

CSS: table min-width

Scheduled Pinned Locked Moved Web Development
cssquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alivemau5
    wrote on last edited by
    #1

    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?

    A A 2 Replies Last reply
    0
    • A Alivemau5

      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?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • A Alivemau5

        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?

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups