How to set a border for an HTML div tag

前端 未结 9 848
予麋鹿
予麋鹿 2021-01-29 22:06

I am trying to define a border around a div tag in HTML. In some browsers the border does not appear.

Here is my HTML code:

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 22:39

    I guess this is where you are pointing at ..

    Well. it must be written as border-width:thin

    Here you go with the link (click here) check out the different types of Border-styles

    you can also set the border width by writing the width in terms of pixels.. (like border-width:1px), minimum width is 1px.

提交回复
热议问题