html - Impact of td/th background over table border -


i have table element border:

.summary-table {     font-family: sans-serif;     -webkit-font-smoothing: antialiased;     font-size: 115%;     overflow: auto;     width: 100%;     border: 1px solid rgb(195, 195, 195) !important;     border-radius: 4px;     overflow: hidden; } 

when use background color on thead tr works fine

.summary-table thead tr{     background-color: #e8e8e8 !important; } 

enter image description here

but when use background color on thead th (no border-top , left ):

.summary-table th {     background-color: #e8e8e8 !important;     font-weight: normal;     color: black;     padding: 20px 30px; } 

enter image description here

can tell nme why this?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -