Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>CSS pada Image (Triyanna XI RPL 2)</title>
- <style type="text/css">
- img.mouse {
- margin-top: 10px;
- float: left;
- clear: both;
- width: 200px;
- height: 200px;
- }
- img.cat {
- margin-top: 5px;
- float: right;
- clear: both;
- width: 200px;
- height: 200px;
- border: solid;
- border-color: pink;
- }
- img.koa{
- margin-top: 10px;
- float: right;
- clear: both;
- width: 200px;
- height: 200px;
- }
- </style>
- </head>
- <body>
- <h1>Contoh embedded CSS pada gambar</h1>
- <img class="mouse" src="gambar/tikus.jpg">
- <img class="cat" src="gambar/kucing.jpg">
- <img class="koa" src="gambar/koala.jpg">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement