Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Override the HTML table border attribute

I have a table with the attribute "Border" set to 0 so whatever I set in the css the table don't show a border

Notice that I can't change the table border attribute inline. I can't access the file.

<table  class="ms-listviewtable" handledeleteinit="true" border="0" style="">

What can I do to override the border ?

like image 412
Temala Ridha Avatar asked Oct 21 '25 03:10

Temala Ridha


1 Answers

Here is an example of Temala's answer:

table {
    border-collapse: collapse;
    border: 1px solid red;
    border-bottom: 0;
}
td, th {
     border-right: 1px solid red;
     border-bottom: 1px solid red;
}
like image 57
Richard Avatar answered Oct 22 '25 19:10

Richard