Putting a border around a matrix table | XM Community
Skip to main content
Solved

Putting a border around a matrix table

  • January 26, 2021
  • 2 replies
  • 276 views

I have cobbled together a code to put a border top, left, and right of a matrix table. How do I add a bottom border? Thanks in advance. Here is what I am using:

 var jfe = false;
    if(/^\\/jfe/.test(window.location.pathname)) jfe = true;
    var q = jQuery("#"+this.questionId);
    if(!jfe || (jfe && q.find('div.desktop').length > 0)) {
      q.find("table").css("border-collapse","collapse");
       q.find(" .Answers").css("border-bottom","2px solid #104F8F");
 q.find(" .Answers").css("border-top","2px solid #104F8F");
       q.find(" .c1").css("border-right","2px solid #104F8F");
  q.find(" .c8").css("border-right","2px solid #104F8F");
 q.find(" .c1").css("border-left","2px solid #104F8F");



Best answer by ahmedA

You can use this CSS to borders to the table:

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • January 26, 2021

You can use this CSS to borders to the table:


  • Author
  • January 27, 2021

Worked perfectly. Thanks!