Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Masih Soal CSS
trimakasih sblmnya,gambar sudah menyamping dan tidak ke bawah lagi,tapi knp saat saya ingin menggeser judul ke tengah knp gambarnya ikut ke tengah juga min..?(h2 posisi sebagai judul min)
<html>
<head>
<title>Tentang Kantor</title>
<style>
*{padding:0; margin:0;}
html {
background: url(bali.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
a{text-decoration:none;
color:yellow; text-shadow:10px 10px 10px red;
position:fixed;z-index:1;}
img{width:300px; height:400px;
position:relative; border:2px solid white; }
#gambar1{ top:50px;}
#gambar2{top:50px;}
h2{position:relative; top:50px;
text-align:center; font-size:40px; color:yellow;
text-shadow:10px 10px 10px red;}
</style>
</head>
<body>
<h1><a href="http://localhost/fadhilsanad/index.html">DewataSoft</a></h1>
<h2>Tentang Kantor<h2>
<img id="gambar1" src="kantor.jpg">
<img id="gambar2" src="kantor1.jpg">
</body>
</html>
0
3 Jawaban:
Itu closing tag h2 nya kurang "/"
Tentang Kantor
-----------------------------^
0
wah iya ,thks gan, udah bner skr hehe
0
kesalahan yang hanya satu karakter bisa membunuh , contohnya yang satu ini
bla bla bla () // -> ;
0