full screen modal nav

How we can create a full-screen popup nav using only HTML CSS? Solution: See this Full Screen Modal Nav Using Pure HTML and CSS, Modal Box Nav.

Previously I have shared some nav and modal programs, but it is a combination of the modal box with nav. Basically, A modal window is a type of window that is a child or secondary window to a parent window. It is commonly associated with a Website pop-up window that stays in front of the main window. And we can create a kind of menu or navigation which fits in the modal and appear in the popup.

Today you will learn to create Modal Box Nav or Menu design. Basically, there is a button you will see at first. When you will click on it a box will appear with full-screen size, the box contains the nav. The nav has a sidebar a top bar, a blank field with a search box. In the sidebar, there are nav items or links and each item has its own image, when you click on any item the image will change on the left blank field. At the top bar, there is a text for showing the menu and a close button to close the popup box. This program is also responsive, in small screen size the sidebar will shift to the top and you have to scroll to see all items.

So, Today I am sharing Full Screen Modal Nav Using Pure HTML and CSS. There I have used pure CSS and HTML to create the whole program. That not means it is a dummy or bad, it is a complete program with good UI design. The modal box nav can be a good practice of those peoples whos step in web design and development. You can use this modal full-screen nav on your website, after some changes like logo, link, etc.

If you are thinking now how this responsive modal nav actually is, then see the preview given below.

Preview Of Responsive Popup Nav

See this video preview to getting an idea of how this modal box popup menu looks like.

Live Demo

Now you can see this visually, also you can see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

Full Screen Modal Nav Using Pure HTML and CSS Source Code

Before sharing source code, let’s talk about it. First I have created a main div named container and put all elements inside it. For the modal button, I have created a checkbox input and a label for it. And created an SVG shape for the cross icon to close, also created radio input and labels for the nav sidebar items. After that, I created a div list for image placement, and search input for the search box. Many other divs and elements also in the HTML file.

Now using CSS I have placed all the elements in the right place, as you can see in the preview. There I have used CSS variables --var var(--name) to store and call values easily. With variables the program is easy to create otherwise it will little complicated. For creating the nav layout I have used grid display display: gird;  command, also used flex display in some places. To creating responsive used @keyframe command, and gave auto width and height to columns-rows.

Left all other things you will understand after getting the codes, I can’t explain all here in writing. For creating this program you have to create only 2 files. One file for HTML and one for CSS. Follow the steps to creating this without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

That’s It. Now you have successfully created Full Screen Modal Nav Using Pure HTML and CSS, Modal Box Nav. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

2 COMMENTS

  1. Thanks for that.
    I used this cool menu in my site. i think there is a small problem.
    If you add many content on your page, when you open the menu there is scroll bar on the right. So you can scroll and go out the menu.

LEAVE A REPLY

Please enter your comment!
Please enter your name here