Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <!--------------------------------------------------------------------------------------------------
- --------------------------------------------------------------------------------------------------
- [fancy_menu.html]
- Get fancy interractive menu effects using just CSS (without having to resort to JavaScript).
- (c) Damion 'Phr0z3n.dev' Tapper, 2014.
- Email: Phr0z3n.Dev@Gmail.com
- --------------------------------------------------------------------------------------------------
- --------------------------------------------------------------------------------------------------->
- <html>
- <head>
- <title>
- Phr0z3n.Dev's Fancy Menu System
- </title>
- <style type="text/CSS">
- body{
- font-family: helvetica;
- font-size: 11pt;
- }
- h1{
- margin: 0px;
- font-family: verdana;
- font-size: 16pt;
- text-align: center;
- }
- /***************************************************************************************
- * This bit is just for presentation and tidyness so it is not relevant to pay attention
- * to this section.
- ****************************************************************************************/
- #mainDiv{
- width: 800px;
- height: 600px;
- position: absolute;
- border: 2px solid rgb(0, 128, 0);
- border-radius: 20px;
- left: 50%;
- margin-left: -400px;
- top: 50%;
- margin-top: -300px;
- }
- /***************************************************************************************
- * This bit addresses the matter at hand:
- *
- * Menu div Formatting
- ****************************************************************************************/
- #menuDiv{
- /*
- * Set the dimensions and other relevant styling attributes.
- */
- width: 150px;
- float: left;
- border: 2px solid rgb(0, 128, 0);
- border-top: 0px;
- border-left: 0px;
- border-radius: 20px;
- background-color: rgb(255, 255, 255);
- }
- /***************************************************************************************
- * Menu Inner Contents Formatting
- ****************************************************************************************/
- /**
- * Menu horizontal separator formatting
- **/
- #menuDiv hr{
- width: 90%;
- color: rgb(0, 128, 0);
- border: 1px solid;
- margin: 1px;
- margin-left: auto;
- margin-right: auto;
- }
- /**
- * General div formatting
- **/
- #menuDiv div{
- padding-top: 6px;
- padding-bottom: 6px;
- color: rgb(0, 0, 128);
- text-align: center;
- font-family: helvetica;
- font-weight: bold;
- }
- /**
- * Clip the relevant edges
- **/
- #menuDiv div:first-child{
- border-top-left-radius: 20px;
- border-top-right-radius: 20px;
- }
- #menuDiv div:last-child{
- border-bottom-left-radius: 20px;
- border-bottom-right-radius: 20px;
- }
- /**
- * Add alternating coloring
- **/
- #menuDiv div:nth-child(even){
- background-color: rgb(224, 255, 255);
- }
- #menuDiv div:nth-child(odd){
- background-color: rgb(170, 255, 255);
- }
- /**
- * Menu hover effect formatting
- **/
- #menuDiv div:hover{
- background-color: rgb(32, 196, 196);
- }
- /**
- * Menu hyperlinks formatting
- **/
- #menuDiv a{
- color: rgb(0, 0, 128);
- }
- #menuDiv a:hover{
- color: rgb(245, 245, 220);
- }
- /***************************************************************************************
- * Web Site Contents div Formatting
- ****************************************************************************************/
- #contentDiv{
- width: 638px;
- height: 562px;
- float: right;
- border-left: 2px solid rgb(0, 128, 0);
- border-radius: 20px;
- padding: 4px;
- color: rgb(0, 0, 64);
- }
- /***************************************************************************************
- * Site iIfo div Formatting
- ****************************************************************************************/
- #siteInfoDiv{
- float: left;
- width: 152px;
- height: 300px;
- margin-top: 52px;
- border-bottom: 2px solid rgb(0, 128, 0);
- border-radius: 20px;
- font-size: 10pt;
- }
- #siteInfoHeaderDiv{
- padding-top: 4px;
- padding-bottom: 4px;
- font-family: verdana;
- font-weight: bold;
- text-align: center;
- color: rgb(245, 245, 220);
- border-top: 2px dashed rgb(0, 128, 0);
- border-bottom: 2px dashed rgb(0, 128, 0);
- border-radius: 10px;
- background-color: rgb(0, 64, 0);
- }
- #siteInfoBodyDiv{
- padding: 4px;
- color: rgb(0, 128, 128);
- }
- /***************************************************************************************
- * Footer div(s) Formatting
- ****************************************************************************************/
- #footerDiv{
- clear: both;
- border: 0px;
- padding: 0px;
- margin: 0px;
- }
- #footerDiv div{
- text-align: center;
- border-top: 2px solid rgb(0, 128, 0);
- border-radius: 20px;
- padding-top: 4px;
- padding-bottom: 4px;
- }
- #footerDiv div:hover{
- background-color: rgb(32, 224, 224);
- font-weight: bold;
- border-bottom: 2px solid rgb(0, 128, 0);
- }
- #supportDiv{
- float: left;
- width: 267px;
- }
- #contactsDiv{
- float: right;
- width: 266px;
- }
- #affiliatesDiv{
- float: right;
- width: 267px;
- }
- /***************************************************************************************
- * Misc Formatting
- ****************************************************************************************/
- /**
- * General document hyperlink formatting
- **/
- a{
- text-decoration: none;
- }
- a:hover{
- color: rgb(0, 128, 0);
- }
- </style>
- <!-- For the sake of the adventurous -->
- <script type="text/JavaScript">
- </script>
- </head>
- <body>
- <!--
- Phr0z3n.Dev's Child Enrollment Registration System
- -->
- <div id="mainDiv">
- <div id="menuDiv">
- <div><a href="">Monday</a></div>
- <div><a href="">Tuesday</a></div>
- <div><a href="">Wednesday</a></div>
- <div><a href="">Thursday</a></div>
- <div><a href="">Friday</a></div>
- <hr />
- <div><a href="">Admin</a></div>
- <div><a href="">Log Out</a></div>
- </div>
- <div id="contentDiv">
- <h1>Site Content</h1>
- <p>
- Site content goes here.
- </p>
- </div>
- <div id="siteInfoDiv">
- <div id="siteInfoHeaderDiv">
- Site Info
- </div>
- <div id="siteInfoBodyDiv">
- Site info goes here
- </div>
- </div>
- <div id="footerDiv">
- <div id="supportDiv"><a href="">Support</a></div>
- <div id="contactsDiv"><a href="">Contacts</a></div>
- <div id="affiliatesDiv"><a href="">Affiliates</a></div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement