div style border color html





2 single borders The HTML: The CSS: .wrap-1 .

.However, the problem with double borders in this style is that you cant specify different colors for each of the border and are stuck with an averaged width in the gap between them. I am using html, css, and bootstrap. I have 2 horizontal divs: . The style tag is used to create classes. HTML.Next, well look at a CSS border example where we provide the border-width, border-style, and border-color values.

div border: 1px solid black Define borders within your HTML codes.There are many other border properties that are even more precise than this, such as the border-bottom-color, border-bottom-style etc. How to set CSS div back color ?The border-color property specifies the border color for each side of the box.