<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatib1e" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> < link rel="stylesheet" href="style.css"> <title>Document</title> </head> <body> <nav> <a href="">خانه</a> <a href="">وبلاگ</a> <a href="">دوره های اموزشی</a> </nav> </body> </html> file style.css nav{ background-color: black; text-align: center; position: fixed; top: 0; Left: 0; right: 0; } a{ display: inline-block; padding: 1em; color: #fff; text-decoration :none; } a:hover{ color: yellowgreen; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter