Tenchuu Posted October 18, 2019 Share Posted October 18, 2019 Hier einmal ein Template, das wenn man in einem vehicle sitzt das man eine kleine Navigation angezeigt bekommt Code -> <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Speedometer</title> <link rel="stylesheet" href="assets/css/all.css"> </head> <style> html { background: url("https://img.gta5-mods.com/q95/images/vehicle-weapons-net/7a578c-Vehicle%20Weapons.jpg") no-repeat center center fixed; background-size: cover; } .speed { position: absolute; bottom: 0; right: 0; width: 350px; height: 10px; border: 1px solid rgba(0, 0, 0, 0.8); background-color: rgba(0, 0, 0, 0.8); border-radius: 8px; color: white; text-align: center; padding-top: 0.5em; padding-left: 1em; padding-right: 1em; padding-bottom: 1em; margin-right: 0.5em; margin-bottom: 0.5em; } .fa-lock-open-alt { color: green; } .fa-tachometer-alt-fast { color: green; } .fa-gas-pump { color: green; } .fa-map-marked-alt { color: green; } </style> <body> <div class="panels"> <div class="speed"> <i class="fal fa-lock-open-alt"> </i> | <i class="fal fa-tachometer-alt-fast"> </i> 300 KM/h | <i class="fal fa-gas-pump"> </i> 100.00 l | <i class="fal fa-map-marked-alt"> </i> 12345.00 km </div> </div> </body> </html> Screen -> Ihr braucht Font Awesome Pro oder benutzt andere Icons. Link to comment Share on other sites More sharing options...
Recommended Posts