Baca Juga :  Style Sisi Border CSS

Contoh Advanced Background CSS

0 105

Contoh Advanced Background CSS

<!DOCTYPE html>
<html>
<head>
<style>
body {
margin-left: 200px;
background: #5d9ab2 url(https://www.infokoding.com/wp-content/uploads/2017/10/img_tree.png) no-repeat top left;
}

.center_div {
border: 1px solid gray;
margin-left: auto;
margin-right: auto;
width: 90%;
background-color: #d0f0f6;
text-align: left;
padding: 8px;
}
</style>
</head>
<body>

<div class=”center_div”>
<h1>Hello World!</h1>
<p>Contoh ini berisi beberapa metode CSS lanjutan yang mungkin belum Anda pelajari. Tapi, kami akan menjelaskan metode ini di bab selanjutnya di tutorial.</p>
</div>

</body>
</html>

Coba Layout Editor »

Baca Juga :  Style Warna Border CSS

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

Leave A Reply

Your email address will not be published.

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