Centering anything horizontally
How do I make an centering anything horizontally?
I started to love display table :). What is a centering anything horizontally? How do you make a centering anything horizontally? This script and codes were developed by Mojtaba Seyedi on 27 July 2022, Wednesday.
Centering anything horizontally - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Centering anything horizontally</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /* Dynamic navigation stays in middle */
nav { display: table; margin: 0 auto;
}
body { padding-top: 100px; background-color: #272822;
}
li { float: right; background-color: #e43;
}
li a { display: block; padding: .5em 1em; color: #fff; text-decoration: none; font-weight: bold;
}
html { direction: rtl;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav role='navigation'> <ul> <li><a href="#">صفحه اصلی</a></li> <li><a href="#">بلاگ</a></li> <li><a href="#">درباره ما</a></li> <li><a href="#">تماس با ما</a></li> </ul>
</nav> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Centering anything horizontally - Script Codes CSS Codes
/* Dynamic navigation stays in middle */
nav { display: table; margin: 0 auto;
}
body { padding-top: 100px; background-color: #272822;
}
li { float: right; background-color: #e43;
}
li a { display: block; padding: .5em 1em; color: #fff; text-decoration: none; font-weight: bold;
}
html { direction: rtl;
}
Developer | Mojtaba Seyedi |
Username | seyedi |
Uploaded | July 27, 2022 |
Rating | 3 |
Size | 2,018 Kb |
Views | 48,576 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Steering menu | 2,806 Kb |
Ribbon Menu | 3,773 Kb |
Switching | 2,771 Kb |
Funny toggle switch | 2,896 Kb |
A Pen by Mojtaba Seyedi | 3,285 Kb |
Navigation | 3,699 Kb |
Shader Menu | 2,784 Kb |
Button | 3,688 Kb |
Covering Bad | 3,891 Kb |
FUN | 3,508 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Brent Burns Tribute Page | Nevada48 | 2,569 Kb |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Rrremark.com Overlay Highlighter | Derickruiz | 4,438 Kb |
Wavy Road with Dashes | Jonobr1 | 2,679 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
CSS Link Zoom On Click | Bryce | 1,960 Kb |
Navcube | Wbarlow | 4,775 Kb |
Tab Menus | Zephyr | 3,180 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!