μ΄λ²μλ μΈκ³½μ μμ±μ λν΄μ μμ보λλ‘ νκ² μ΅λλ€.
μμλΌμΈ(μΈκ³½μ )μ ν λ리μ λ§μ΄ μ μ¬ν©λλ€. κ·Έλμ μ€λΉνμ΅λλ€.
μ΄ λκ°μ μ°¨μ΄μ :
μΈκ³½μ μ 곡κ°μ μ°¨μ§νμ§ μμ΅λλ€.
μΈκ³½μ μ μ§μ¬κ°νμΌ νμκ° μμ΅λλ€.
μΈκ³½μ μ μ¬λ°©μ΄ λͺ¨λ λκ°μ μ μ λλ€. ν λ리μ²λΌ μΌμͺ½μ μ μ , μ€λ₯Έμͺ½μ μ§μ , μ΄λ κ² λ°λ‘ μ€μ ν μκ° μμ΅λλ€.
NOTE: μ΄ μμ±λ IE 6 μ΄λ Netscape 7μμλ μλλ€κ³ νλκ΅°μ. μμ§λ μ΄λ° λΈλΌμ°μ λ₯Ό μ¬μ©νμλ λΆλ€μ μκ² μ§λ§μ γ
μ κ·ΈλΌ μΈκ³½μ κ΄λ ¨ μμ±μ μ΄λ€κ²λ€μ΄ μλμ§ νλ² μμλ΄ μλ€.
outline-width
outline-style
outline-color
outline
The outline-width Property:
The outline-width property specifies the width of the outline to be added to the box. Its value should be a length or one of the values thin, medium, or thick . just like the border-width attribute
A width of zero pixels means no outline.
λ€μ μμ λ₯Ό νλ² λ³΄μμ£ .
<p style="outline-width:thin; outline-style:solid;"> This text is having thin outline. </p> <br /> <p style="outline-width:thick; outline-style:solid;"> This text is having thick outline. </p> <br /> <p style="outline-width:5px; outline-style:solid;"> This text is having 5x outline. </p> |
κ²°κ³Όλ μλμ κ°μ΅λλ€.
This text is having thin outline. This text is having thick outline. This text is having 5x outline. |
The outline-style Property:
The outline-style property specifies the style for the line (solid, dotted, or dashed) that goes around an element. It can take one of the following values:
none: No border. (Equivalent of outline-width:0;)
solid: Outline is a single solid line.
dotted: Outline is a series of dots.
dashed: Outline is a series of short lines.
double: Outline is two solid lines.
groove: Outline looks as though it is carved into the page.
ridge: Outline looks the opposite of groove.
inset: Outline makes the box look like it is embedded in the page.
outset: Outline makes the box look like it is coming out of the canvas.
hidden: Same as none.
λ€μ μμ λ₯Ό νλ² λ³΄μμ£ .
<p style="outline-width:thin; outline-style:solid;"> This text is having thin solid outline. </p> <br /> <p style="outline-width:thick; outline-style:dashed;"> This text is having thick dashed outline. </p> <br /> <p style="outline-width:5px;outline-style:dotted;"> This text is having 5x dotted outline. </p> |
κ²°κ³Όλ μλμ κ°μ΅λλ€.
This text is having thin solid outline. This text is having thick dashed outline. This text is having 5x dotted outline. |
The outline-color Property:
The outline-color property allows you to specify the color of the outline. Its value should either be a color name, a hex color, or an RGB value, as with the color and border-color properties.
λ€μ μμ λ₯Ό νλ² λ³΄μμ£ .
<p style="outline-width:thin; outline-style:solid; outline-color:red"> This text is having thin solid red outline. </p> <br /> <p style="outline-width:thick; outline-style:dashed; outline-color:#009900"> This text is having thick dashed green outline. </p> <br /> <p style="outline-width:5px;outline-style:dotted; outline-color:rgb(13,33,232)"> This text is having 5x dotted blue outline. </p> |
κ²°κ³Όλ μλμ κ°μ΅λλ€.
This text is having thin solid red outline. This text is having thick dashed green outline. This text is having 5x dotted blue outline. |
The outline Property:
The outline property is a shorthand property that allows you to specify values for any of the three properties discussed previously in any order but in a single statement.
λ€μ μμ λ₯Ό νλ² λ³΄μμ£ .
<p style="outline:thin solid red;"> This text is having thin solid red outline. </p> <br /> <p style="outline:thick dashed #009900;"> This text is having thick dashed green outline. </p> <br /> <p style="outline:5px dotted rgb(13,33,232);"> This text is having 5x dotted blue outline. </p> |
κ²°κ³Όλ μλμ κ°μ΅λλ€.
This text is having thin solid red outline. This text is having thick dashed green outline. This text is having 5x dotted blue outline. |
Reference : http://www.tutorialspoint.com/css/css_outlines.htm
'π» Programming > CSS' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[CSS] 19. Scrollbars ( μ€ν¬λ‘€λ° ) (0) | 2016.06.12 |
---|---|
[CSS] 18. Dimension ( λμ΄, λλΉ, width, height ) (0) | 2016.06.12 |
[CSS] 16. Cursor ( λ§μ°μ€ 컀μ λͺ¨μ ) (0) | 2016.06.12 |
[CSS] 15. Paddings ( ν¨λ© ) (0) | 2016.06.12 |
[CSS] 14. Lists ( 리μ€νΈ, λͺ©λ‘ ) (0) | 2016.06.12 |