css border-style property


  Translation results:

border

UK[ˈbɔ:də(r)] US[ˈbɔ:rdə(r)]

n.Border; edge; edging; wrapping Edge

vt.& vi. Bound with, on the edge of...

vt. Along the edge of, surround..., edge...

vi. Approximate, adjacent

Third person singular: borders Plural: borders Present participle: bordering Past tense: bordered Past participle: bordered

style

英[ staɪl] 美[staɪl]

n. Way; style; fashion; appearance, taste

vt. Design; title; for... shape

vi. To conform to the popular style ;Use a carving knife to make decorative paintings

Third person singular: styles Plural: styles Present participle: styling Past tense: styled Past participle: styled

css border-style propertysyntax

Function: Used to set the style of all borders of an element, or set the border style for each side individually.

Note: The border may appear only when this value is not none.

Note: Any version of Internet Explorer (including IE8) does not support the attribute value "inherit" or "hidden".

css border-style propertyexample

<html>
<head>
<style type="text/css">
p.dotted {border-style: dotted}
p.dashed {border-style: dashed}
p.solid {border-style: solid}
p.double {border-style: double}
p.groove {border-style: groove}
p.ridge {border-style: ridge}
p.inset {border-style: inset}
p.outset {border-style: outset}
</style>
</head>

<body>
<p class="dotted">A dotted border</p>

<p class="dashed">A dashed border</p>

<p class="solid">A solid border</p>

<p class="double">A double border</p>

<p class="groove">A groove border</p>

<p class="ridge">A ridge border</p>

<p class="inset">An inset border</p>

<p class="outset">An outset border</p>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A