Answers for "give div border"

CSS
2

make border to div

border: 2px solid black
Posted by: Guest on November-30-2020
9

css border top

.topBorder {
  /*        width style color  */
  border-top: 5px solid black;
}
Posted by: Guest on October-29-2020
1

border width css

#some-div {
  /* [WIDTH] [FILL MODE] [COLOR] */
  border: 5px solid #f00; 
  
  /* draws solid a red line of 5px
  between the padding (inside the div)
  and the margin (outside the div) */
}
Posted by: Guest on January-25-2021

Browse Popular Code Answers by Language