Line 336: | Line 336: | ||
transition: max-height 0.2s ease-out; | transition: max-height 0.2s ease-out; | ||
} | } | ||
+ | |||
+ | |||
+ | .sidenav { | ||
+ | width: 130px; | ||
+ | position: fixed; | ||
+ | z-index: 1; | ||
+ | top: 20px; | ||
+ | left: 10px; | ||
+ | background: #eee; | ||
+ | overflow-x: hidden; | ||
+ | padding: 8px 0; | ||
+ | } | ||
+ | |||
+ | .sidenav a { | ||
+ | padding: 6px 8px 6px 16px; | ||
+ | text-decoration: none; | ||
+ | font-size: 25px; | ||
+ | color: #2196F3; | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .sidenav a:hover { | ||
+ | color: #064579; | ||
+ | } | ||
+ | |||
+ | |||
+ | @media screen and (max-height: 450px) { | ||
+ | .sidenav {padding-top: 15px;} | ||
+ | .sidenav a {font-size: 18px;} | ||
+ | } | ||
+ | |||
</style> | </style> | ||
Line 410: | Line 441: | ||
</div> | </div> | ||
</header> | </header> | ||
+ | |||
+ | <div class="sidenav"> | ||
+ | <a href="#about">About</a> | ||
+ | <a href="#services">Services</a> | ||
+ | <a href="#clients">Clients</a> | ||
+ | <a href="#contact">Contact</a> | ||
+ | </div> | ||
<!-- month1 --> | <!-- month1 --> |
Revision as of 13:50, 6 September 2018
Notebook
October
In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
September
In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.