Skip to main content

Hi - first question incoming! 

I want to add a border/outline to a RCE box. I was advised to try css but no idea how to do that :( 

Anyone have any suggestions please? 

TIA! 

 

#Salesforce Admin

1 respuesta
  1. 4 abr 2025, 05:09

    Hi @christine Johnston

     

     

    You can use below code to apply border/outline to the box: 

     

    <!DOCTYPE html> 

    <html lang="en"> 

    <head> 

        <meta charset="UTF-8"> 

        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 

        <title>RCE Box Border</title> 

        <style> 

            .rce-box { 

                width: 300px; 

                height: 150px; 

                padding: 10px; 

                border: 2px solid #000000; 

                border-radius: 10px; 

                outline: 3px dashed

    #ff0000

    ;  

                box-sizing: border-box; 

            } 

        </style> 

    </head> 

    <body> 

        <div class="rce-box"> 

            <p>Sample Text</p> 

        </div> 

     

    </body> 

    </html>

0/9000