gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
cara bikin tangkai rose coding html
- User
User: cara bikin tangkai rose coding html User: cara bikin tangkai rose coding html Assistant:
- Assistant
Untuk membuat tangkai mawar (rose stem) menggunakan HTML dan CSS, Anda bisa menggunakan elemen HTML dan mengatur gaya dengan CSS. Berikut adalah contoh sederhana tentang bagaimana cara melakukannya:
<!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tangkai Mawar</title> <style> body { display: flex; justify-content: center; align-items: flex-end; height: 100vh; background-color: #f0f0f0; } .rose-stem { width: 10px; height: 200px; background-color: green; position: relative; } .rose { width: 50px; height: 50px; background-color: red; border-radius: 50%; position: absolute; top: -40px; left: -20px; } .leaf { width: 25px; height: 15px; background-color: green; position: absolute; border-radius: 15px; bottom: 100px; /* Menyesuaikan posisi daun */ } .leaf.left { transform: rotate(-30deg); left: -10px; } .leaf.right { transform: rotate(30deg); right: -10px; } </style> </head> <body> <div class="rose-stem"> <div class="rose"></div> <div class="leaf left"></div> <div class="leaf right"></div> </div> </body> </html>