
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
How to create a "more" button with CSS?
Following is the code to create a more button with CSS −
Example
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" />t" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> body{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .menu-btn { background-color: #040008; color: white; padding: 16px; font-size: 34px; font-weight: bolder; border: none; } .dropdown-menu { position: relative; display: inline-block; } .menu-content { display: none; position: absolute; background-color: #017575; min-width: 160px; z-index: 1; } nav{ background-color: #017575; } .links,.links-hidden{ display: inline-block; color: rgb(255, 255, 255); padding: 12px 16px; text-decoration: none; font-size: 24px; font-weight: bold; } .links-hidden{ display: block; } .links{ display: inline-block; } .links-hidden:hover,.links:hover { background-color: rgb(8, 107, 46); } .dropdown-menu:hover .menu-content { display: block; } .dropdown-menu:hover .menu-btn { background-color: #3e8e41; } </style> </head> <body> <h1>More button inside navigation bar example</h1> <nav> <a class="links" href="#">HOME</a> <a class="links" href="#">EMPLOYEES</a> <a class="links" href="#">CAREER</a> <div class="dropdown-menu"> <button class="menu-btn">More <i class="fa fa-caret-down"></i></button> <div class="menu-content"> <a class="links-hidden" href="#">Contact Us</a> <a class="links-hidden" href="#">Visit Us</a> <a class="links-hidden" href="#">About Us</a> </div> </div> </nav> </body> </html>
Output
The above code will produce the following output −
On hovering above the more button, the dropdown menu will open −
- Related Articles
- How to create a "button group" with CSS?
- How to create a search button with CSS?
- How to create a vertical "button group" with CSS?
- How to create a split button dropdown with CSS?
- Create a Button Group with CSS
- How to create a "scroll back to top" button with CSS?
- Create a Bordered Button Group with CSS
- Create a Vertical Button Group with CSS
- How to create a "toggle switch" (on/off button) with CSS?
- Create a link button with borders using CSS
- Create a disabled look of a button with CSS
- How to create button hover animation effect using CSS?
- How to add rounded corners to a button with CSS?
- How to add a button to an image with CSS?
- How to add a colored border to a button with CSS?

Advertisements