Style Warna Border CSS

1 62

Contoh Style Warna Border CSS

<!DOCTYPE html>
<html>
<head>
<style>
p.one {
border-style: solid;
border-color: #0000ff;
}

p.two {
border-style: solid;
border-color: #ff0000 #0000ff;
}

p.three {
border-style: solid;
border-color: #ff0000 #00ff00 #0000ff;
}

p.four {
border-style: solid;
border-color: #ff0000 #00ff00 #0000ff rgb(250,0,255);
}
</style>
</head>
<body>

<p class=”one”>One-colored border!</p>
<p class=”two”>Two-colored border!</p>
<p class=”three”>Three-colored border!</p>
<p class=”four”>Four-colored border!</p>
<p><b>Catatan:</b> Properti “border-color” tidak berfungsi jika digunakan sendiri. Gunakan properti “border-style” untuk mengatur perbatasan terlebih dulu.</p>

</body>
</html>

Coba Layout Editor »

Get real time updates directly on you device, subscribe now.

1 Comment
  1. […] Atur Style border atas Atur Style border bawah Atur Style border kiri Atur Style border kanan Atur warna dari empat sisi border Atur warna border atas Atur warna border bawah Atur warna border kiri Atur warna border kanan Semua […]

Leave A Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.