Found 1566 Articles for CSS

How to create a pill navigation menu with CSS?

AmitDiwan
Updated on 08-Dec-2023 15:24:53

670 Views

The Pill navigation menu is used for navigation and enhances user experience. The navigation items are set within it. The element is used to create a menu and works the same for pill navigation menu as well. Let us see how to create a pill navigation menu on a web page. Create a pill navigation menu First, we will create a menu using the element. The links are set using the element − Home Login Register Contact Us More Info ... Read More

How to create a fixed social media icon bar with CSS?

AmitDiwan
Updated on 06-Apr-2020 11:48:03

402 Views

Following is the code to produce a fixed social media icon bar with CSS −Example Live Demo *, *::before, *::after {    box-sizing: border-box; } main {    margin-left: 300px; } .SocialBar {    position: fixed;    display: block;    top: 30%;    font-size: 0;    width: 200px;    border: 2px solid darkgreen;    box-shadow: 5px 10px 18px rgb(55, 173, 39); } button {    display: block;    width: 100%;    margin: 0px;    border: none;    padding: 15px;    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;    font-weight: bold;    font-size: 20px; } button:not(:last-child) {   ... Read More

How to create a "button group" with CSS?

AmitDiwan
Updated on 17-Nov-2023 10:22:33

391 Views

On a web page, we can easily create a button group. We will create a single div for all the buttons in a button group. They will be set with display inline-block. Also, the hover effect will be set. Create a Button Group on a web Page In a div, set the buttons using the element − Facebook Twitter LinkedIn Style the Button Groups The display suggests how to control the layout of an element. In this case, the inline-block of the display property displays ... Read More

How to create a pagination with CSS?

AmitDiwan
Updated on 08-Dec-2023 15:11:26

254 Views

When you give page numbers to each page of a book, it is called pagination. On a website, pagination allows dividing pages and is a series of interconnect pages. It divides and sets ordinal number pf pages. For example, the first 1, 2, 3, 4, 5 pages links are visible on a web page to make it easier for users to navigate related content. Let us see how to create a pagination on a web page with the previous and next links as well. Create links for pagination The links are set using the element. A div is set ... Read More

How to create a mega menu (full-width dropdown menu in a navigation bar) with HTML and CSS?

AmitDiwan
Updated on 27-Oct-2023 11:31:35

2K+ Views

The mega menu includes the menus with dropdown menus. The dropdown will have a complete setup for creating rows and columns and adding content like this − The mega menu i.e., the full-width dropdown menu in a navigation bar appears like this − On clicking the Projects dropdown menu, the dropdown menu appears − Set the Navigation Menu We have set the menu links inside the Home About Contact Us More Info Style the Menu and Links The navigation menu ... Read More

How to create a dropup menu with CSS?

AmitDiwan
Updated on 06-Apr-2020 11:11:29

689 Views

Following is the code to create a dropup menu with CSS −Example Live Demo .menu-btn {    background-color: #7e32d4;    color: white;    padding: 16px;    font-size: 20px;    font-weight: bolder;    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    border: none; } .dropdown-menu {    position: relative;    display: inline-block;    padding-top: 130px; } .menu-content {    display: none;    position: absolute;    bottom: 50px;    background-color: #017575;    min-width: 160px;    z-index: 1; } .links {    color: rgb(255, 255, 255);    padding: 12px 16px;    text-decoration: none;    display: block;    font-size: 18px;    font-weight: bold;    border-bottom: 1px solid black; } .links:hover {    background-color: rgb(8, 107, 46); } .dropdown-menu:hover .menu-content {    display: block; } .dropdown-menu:hover .menu-btn {    background-color: #3e8e41; } Hover over the below button to open a dropup menu Open

How to create a subnavigation menu with CSS?

AmitDiwan
Updated on 14-Dec-2023 12:20:35

1K+ Views

A subnavigation menu is a menu that appear just below the main menu. The menu is created using the element on a web page. Consider it as a secondary menu or a submenu. The submenus appear on mouse hovering any of the menus from the main menu. This is set using the :hover selector. Create a menu A menu on a web page is created using the element. For the submenus, a div container is created and the menu links are set using the element − Home Contact ... Read More

How to create a responsive navigation bar with dropdown in CSS?

AmitDiwan
Updated on 27-Oct-2023 11:28:14

2K+ Views

To create a responsive navigation bar, the media queries are used. Media Queries is used when you need to set a style to different devices such as tablet, mobile, desktop, etc. The navigation bar with dropdown looks like the following. The dropdown menu is having Contact Us, Visit Us, and About Us sub-menus − Style the Navigation Menu and Links The background color of the navigation menu are set here, with the links. The menu links are set with the display property inline-block. It displays an element as an inline-level block container − nav{ background-color: ... Read More

How to create a dropdown navigation bar with CSS?

AmitDiwan
Updated on 03-Jul-2024 17:34:19

13K+ Views

Dropdown navigation is a nav bar that contain dropdown option. You will see a lot of websites where 3rd or 4th item of the navigation has the dropdown feature. When there are multiple options to render on nav bar item on the same category thats where you will need to develop a dropdown navigation bar. Suppose you are providing multiple types of services then you can not render all of them openly on the nav bar, you will put all of them in a dropdown. It is similar to hoverable dropdown menu. Steps to Create a Dorpdown Navbar ... Read More

How to create a hoverable dropdown menu with CSS?

AmitDiwan
Updated on 27-Jun-2024 18:09:42

2K+ Views

Hoverable dropdown is dropdown that opens when we hover on that dropdown. This kind of dropdown are mostly used on header menu. If the user hover over on any element of the header menu then it will automatically open and render the content of that dropdown. Steps to Create Hoverable Dropdown Before proceeding to create a hoverable dropdown we will create a dropdown structure first using HTML. Step 1 - Add HTML: Here we will create dropdown structure for that we can use , or any element. here in this article we will use the button element. ... Read More

Advertisements