We help IT Professionals succeed at work.
Get Started

css only working  in compatibility mode.

219 Views
Last Modified: 2015-03-10
I am working on a css for a table. When running internet explorer NOT in compatibility mode it shows a black border around the table but If I do it in compatibility then it shows it dotted, which is what I want.

what can be done with the css so that it works when we dont work in compatibility mode ?

Also the black border shows when using Chrome

---

<style>
#tablesample {
    font-family: "Cabin", Arial, Helvetica, sans-serif;
    width: 65%;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 20px;  

    }


#tablesample td, #tablesample th {
    font-size: 1em;
    border: 1px dotted #c4c4c4;
    padding: 5px;
   }

#tablesample td {
  text-align: left;
}

#tablesample th {
    font-size: 1.1em;
    text-align: left;
    padding-top: 5px;
    padding-bottom: 4px;
    background-color: #ebeef3;
    color: #65696c;
    font-weight: normal;
}


#tablesample tr.odd td {
    color: #000000;
    background-color: #fbfbfb;
  }

#tablesample tr.even td {
    color: #000000;
    background-color: #ffffff;
}

#tablesample tr.odd:hover td {
    background-color: #ffffcc;
}

#tablesample tr.even:hover td {
    background-color: #ffffcc;
}

</style>

---
compatibility.PNG
Capture.PNG
Comment
Watch Question
Top Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE