I have a document library with scripts to change the font size of the header row. All the columns apart from one; "Short Description"; have changed.
I have just added a script to adjust the column width of this column and it's not responding to that either.
I have tested the script on other columns in the table and it works fine.
Its a Multiple Line Text column. The colour changes for the header row and font have both worked.
Any ideas?
Scripts being used are:
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"
type="text/javascript">
</script>
<script type="text/javascript">
$(function(){
$("div.ms-vh-div:contains('Topic')").css("width", "500px");});
</script>
and
<style>
.ms-viewheadertr a,
.ms-viewheadertr div {
color: white;
}
.ms-vh2 {
font-size: 10pt ! important; }
.ms-vh {
font-size: 10pt ! important; }
.ms-viewheadertr {
font-size: 10pt ! important; }
.ms-viewheadertr {
background-color: #00646e; }
</style>
$("div.ms-vh-div:contains('Topic')").length
and see what is the output. If it is 0 you dont have that element on page.