<h1>هشت نوع خط با سی اس اس</h1>
<hr class ="style-one">
<div class ="code">
<h2>Code1</h2>
<style>
hr.style-one {
border: 0;
height: 1px;
background: #333;
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
background-image: -moz-linear-gradient(left, #ccc, #333, #ccc);
background-image: -ms-linear-gradient(left, #ccc, #333, #ccc);
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
}</style>
</div>
<hr class ="style-two">
<div class ="code">
<h2>Code2</h2>
<style>
hr.style-two {
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}</style>
</div>
<hr class ="style-three">
<div class ="code">
<h2>Code3</h2>
<style>
hr.style-three {
border: 0;
border-bottom: 1px dashed #ccc;
background: #999;
}</style>
</div>
<hr class ="style-four">
<div class ="code" style="margin-top: -5px;">
<h2>Code4</h2>
<style>
hr.style-four {
height: 12px;
border: 0;
box-shadow: inset 0 12px 12px -12px rgba(0,0,0,0.5);
}</style>
</div>
<hr class ="style-five">
<div class ="code" style="margin-top: 13px;">
<h2>Code5</h2>
<style>
hr.style-five {
border: 0;
height: 0;
box-shadow: 0 0 10px 1px black;
}
hr.style-five:after {
content: "\00a0";
}</style>
</div>
<hr class ="style-six">
<div class ="code">
<h2>Code6</h2>
<style>
hr.style-six {
border: 0;
height: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}</style>
</div>
<hr class ="style-seven">
<div class ="code" style="margin-top: -27px;">
<h2>Code7</h2>
<style>
hr.style-seven {
height: 30px;
border-style: solid;
border-color: black;
border-width: 1px 0 0 0;
border-radius: 20px;
}
hr.style-seven:before {
display: block;
content: "";
height: 30px;
margin-top: -31px;
border-style: solid;
border-color: black;
border-width: 0 0 1px 0;
border-radius: 20px;
}</style>
</div>
<hr class ="style-eight">
<div class ="code" style="margin-top: -20px;">
<h2>Code8</h2>
<style>
hr.style-eight {
padding: 0;
border: none;
border-top: medium double #333;
color: #333;
text-align: center;
}
hr.style-eight:after {
content: "§";
display: inline-block;
position: relative;
top: -0.7em;
font-size: 1.5em;
padding: 0 0.25em;
background: white;
}</style></div>
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|