Border Around Formula Field

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
Any idea how could I add a border in the following syntax or indeed any other way?

"<div style=\"font-weight: bold; background-color:yellow; color:black; font-size: 200%; text-align: center; \">" & [Store Name]  & " " &  [Banner Image] & "</div>" 
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,132 Points 3k badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,512 Points 20k badge 2x thumb
inside the style attribute add the text:

border: 1px solid red

like this (untested)

"<div style=\"border: 1px solid red; font-weight: bold; background-color:yellow; color:black; font-size: 200%; text-align: center; \">" & [Store Name]  & " " &  [Banner Image] & "</div>" 

The 1px refers to the size of the border in pixels; the solid refers to the line style; and red refers to the color of the border. You can change any of these values
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,132 Points 3k badge 2x thumb
Many thanks for your help.