style code disappearing | XM Community
Skip to main content
Question

style code disappearing

  • May 17, 2024
  • 3 replies
  • 73 views

Forum|alt.badge.img+1

Hello,

I am adding the following snippet of code to edit a table in one of my questions, the code runs and it shows what I want, and then it disappears. Does anybody have any idea of what I could do to either make the code stay or write it differently so that it doesn’t disappear? (I have seen some related questions about disappearing code but couldn’t find an answer that helped me).

The code is:

<style>

.no_borders {border-top: hidden;border-bottom: hidden;border-left: hidden;border-right: hidden;}

.all_b { border-top: 1px solid black;

border-bottom: 1px solid black;

border-left: 1px solid black;

border-right: 1px solid black; }

</style>

 

And then, I’m using it on a table like this…

<td class=”all_b”> …

<td class=”no_borders”>...

Thanks a lot!

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1450 replies
  • May 17, 2024

Assuming you are adding the code in question text html part, make sure you have some text content added in the table. Also make sure you have license which supports custom tags.


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • May 17, 2024

Hiya, 

Thanks for your reply!

This is the table. I need to have all cells blank (and empty) and just a little square on the right-hand side of the screen.

<table style="width:100%">
 <tbody>
  <tr>
   <td class="no_border">&nbsp;</td>
   <td class="no_border">&nbsp;</td>
   <td class="no_border" style="text-align: right;">Tokens&nbsp;</td>
   <td class="all_b">&nbsp;</td>
  </tr>
 </tbody>
</table>

I will check re the license. 

Thank you very much!


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • May 17, 2024

(The Qualtrics chatbot says that my license does support custom tags).