Following a great tip from How can I get rid of the columns header when the style 'Boxed' was selected?
I was able to hide all the column headers and everyone was happy! Until of course someone (that pays the bills) asked that for that one list, I bring back the headers. I added a bit of code in the webpart to reverse the effect. I used
.ms-viewheadertr
{ display: none;}
replacing none by: block, inherit, contents, grid... everything I could think of. Some work but the headers are not aligned with the columns, they appear in the wrong place. I would appreciate some advice on this. Thanks
.ms-viewheadertr { display: inherit !important;}
. This should override any CSS that doesn't also have the!implortant
instruction.