css only working in compatibility mode.

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
LVL 1
AleksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

COBOLdinosaurCommented:
A couple of images and the CSS are not going to tell us anything if we don't have a link to the page, or the markup. It is not likely that the problem is in the CSS, but rather in the HTML.

Cd&

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AleksAuthor Commented:
Hmmm its a problem because it is an ASP page in an intranet. I will try to create one that can be public and check there.
AleksAuthor Commented:
Found the issue in the html .. table hard border = 0
COBOLdinosaurCommented:
Validation would have flagged that because border as a tag attribute is obsolete.

Cd&
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.