Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

add inner border css

.inner-border {
  border: 4px solid #e5621a;
  border-radius: 9px;
  box-shadow: inset 0px 0px 0px 1px white;
  box-sizing: border-box; /* Include padding and border in element's width and height */
}
//make sure background and border color are same with different box-shadow.
<button className="bg-[#e5621a] p-4 inner-border">Inner border</button>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #border #css
ADD COMMENT
Topic
Name
1+1 =