By default the border-width
is 0
and border-style
is none
So you need to set them to border-width:1px
and border-style:solid
. You can combine all the border properties into one as below:
#box {
border:1px solid red
}
More Related Contents:
- what does "/" mean in css border-radius property? [duplicate]
- How to remove focus border (outline) around text/input boxes? (Chrome) [duplicate]
- Border Gradient with Border Radius
- Remove white space below image [duplicate]
- How to remove the border highlight on an input text element
- How can I show only corner borders?
- Any way to declare a size/partial border to a box?
- CSS triangle custom border color
- Invert rounded corner in CSS?
- CSS: Margin-top when parent’s got no border
- Hover effect : expand bottom border
- How to create multi-color border with CSS?
- How does border-image work with linear-gradient?
- Should I use ‘border: none’ or ‘border: 0’?
- Double border with different color [duplicate]
- Borders not shown in Firefox with border-collapse on table, position: relative on tbody, or background-color on cell
- What is the difference between outline and border CSS properties?
- CSS border less than 1px [duplicate]
- Two color borders
- How to create multiple borders around existing border of circle [duplicate]
- How to reset / remove chrome’s input highlighting / focus border? [duplicate]
- Removing the image border in Chrome/IE9
- CSS hover border makes elements adjust slightly
- Can I have different colored left and top borders in CSS?
- text flowing out of div
- Combining border-top,border-right,border-left,border-bottom in CSS
- Drawing border colors during a CSS transition
- input type=”image” shows unwanted border in Chrome and broken link in IE7
- Inner border over images with CSS?
- Using CSS to make table’s outer border color different from cells’ border color