All generations.

css from descriptionWed, 23 Nov 2022

a beautiful Login form in the middle of the

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My Website</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <div class="container"> <h1>Login</h1> <form class="login-form" action="index.html" method="post"> <input type="text" name="email" placeholder="Email"> <input type="password" name="password" placeholder="Password"> <input type="submit" name="login" value="Login"> </form> </div> </body> </html>

css from descriptionWed, 23 Nov 2022

create a beautiful menu list

.container > ul { list-style: none; padding: 0; width: 100%; } .container > ul > li { width: 100%; margin: 0; padding: 0; background-color: silver; transition: all .3s ease; } .container > ul > li:hover { background-color: black; } .container > ul > li > a { display: block; padding: 10px; color: white; text-decoration: none; } .container > ul > li > a:hover { color: silver; text-decoration: underline; }

css from descriptionWed, 23 Nov 2022

create a beautiful menu and li

nav { width: 100%; height: 50px; background-color: #333; } nav ul { margin: 0; padding: 0; list-style: none; position: relative; } nav ul li { display: inline-block; color: #fff; } nav ul li a { display: block; padding: 16px 20px; color: #fff; text-decoration: none; } nav ul li a:hover { background-color: #555; } nav ul li ul { display: none; position: absolute; top: 100%; } nav ul li:hover > ul { display: block; background-color: #fff; color: #555; } nav ul li ul li { display: block; }

Questions about programming?Chat with your personal AI assistant