Skip to main content

Hi,

 

I have a list displaying attached files, but the filenames are tiny.

 

So you would think that i could go into the column and change the BODY font of my choosing, but alas it is Greyed out? Why can't the font be changed on a File column?

 

Thanks

Hi Sharpharp1,


 


This is by design, transfer this script to a Datalabel after the list method:


 


<script>$(".fileImage").css("font-size", "12pt");</script>

The attachment control sets the file name in 'title' attribute, as per the following post I don't think its possible to change the font, however this is possible in a list view because the  file name is represented in  <a> 


 


https://stackoverflow.com/questions/2011142/how-to-change-the-style-of-title-attribute-inside-the-anchor-tag


 


hope that helps


Hi Mustafa,

 

Thanks for the script, this works fine,

 

One last thing, the font colour of the text is that dodgy Green font on grey (which is hard to see).

If there anyway of modifying your above javascript to also change the Font colour to Blue?

 

Cmon Mustafa, you can squeeze things out of K2 that aren't usually possible

 

Thanks,


Hi Sharpharp1,


 


Use this script :


 


 


<script>$(".fileImage").css({'font-size': '12pt', 'color': '#CD5C5C'});</script>

 


Change the color, you can use this site to choose the color code:


https://htmlcolorcodes.com/


You will need to clear the data label that has the script and transfer again when an item added:


 



Great stuff, did that and works perfectly.

 

Thanks Mustafa


Reply