Skip to main content

How to create a fully responsive Navigation Bar for your custom website or blogger website in 05 minutes?

 

How to create a fully responsive Navigation Bar for your custom website or blogger website in 05 minutes?

Create Responsive Navigation Bar with HTML and CSS only.

How To Add Hover effects in your Navigation Bar with CSS ?


You can Create a full responsive navigation Bar with hover effects in 05 minutes with HTML and CSS only.


STEP 1.

Create a folder, now create a text file , rename it and change its extension (from .txt to .html). Now it is an html file which can be opened in browser.



Now create another text file and rename it  as Style and change its extension (from .txt to .css).

 

If you want to use logo , then create subfolder name it images , paste your image file in this subfolder. No matter the format but remember you should know its extension e.g logo.png or logo.jpeg etc.

 

STEP 2

 Open VS Code , click Open New folder in VS code , browse and select your folder and select it. It will be opened in your VS Code.

STEP 3

Open your HTML document and your file should look like this.

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>navigation</title>

    <link rel="stylesheet" href="style.css">

</head>

<body>

    <div class="navigation-container">

    <nav>

        <img class='logo' src="images/Logo.png" alt="Home">

        <ul> 

            <li> 

                <a href="#">News</a>

            </li>

            <li>

                <a href="#">Services</a>

            </li>

            <li>

                <a href="#">About</a>

            </li>

            <li>

                <a href="#">Blog</a>

            </li>

        </ul>

    </nav>

</div>

</body>

</html>


STEP 4

Open a new file and save it as style.css  (CSS style Sheet) and your file should look like this.

.navigation-container img.logo {

    height: 35px;

    border-radius: 8px;

}

.navigation-container nav {

    display: flex;

    background: rgb(54, 38, 18);

    width: 890px;

    margin: 0 auto;

    position: fixed;

    top: 12px;

    left: 0px;

    right: 0px;

    justify-content: space-between;

    align-items: center;

    font-family: sans-serif;

    border-radius: 12px;

}

.navigation-container nav ul {

display: flex;

list-style: none;

padding: 0;

width: 85%;

}

.navigation-container nav ul li {

    width: 100%;

}

.navigation-container nav a {

    text-decoration: none;

    color: blue;

    font-weight: bold;

    transition: all 400ms;

}

.navigation-container img.logo:hover {

    height: 70px;

    border-radius: 3px;

    z-index: -2;

    transform: translateX(50%);

}


.navigation-container nav a:hover {

    background-color: aquamarine;

    z-index: -2;

    font-size: 20px;

    color: crimson;

    padding: 0 5px;

    background-color: burlywood;

    transform: rotateX(-90%);

    border-radius: 20px;

}

STEP 5

Create a new Folder with the name IMAGES. Paste your logo here and name it LOGO.

Watch video if you have any problem.

Popular posts from this blog

Top 100 completely Free & Open‑Source Tools for Developers and IT Students

Open‑source software empowers education by removing cost barriers and giving schools freedom to innovate. Here’s a curated list of 100 tools , divided into 10 categories , covering everything from school management to creative arts, coding, and cloud solutions. 🏫 1. School Management & Administration Moodle – LMS for courses, grading, and collaboration. OpenSIS – Student Information System. Fedena CE – ERP for admissions, exams, and timetables. OpenEduCat – Modular education management system. SchoolTool – SIS for small/medium schools. Chamilo – LMS with e‑learning focus. ILIAS – LMS for universities and schools. ATutor – Accessible LMS. Canvas LMS – Popular LMS platform. Open eSchool – SIS for K‑12. 📚 2. Teaching & Learning Tools LibreOffice – Office suite. OnlyOffice – Collaborative office suite. GeoGebra – Math visualization. Anki – Flashcards with spaced repetition. Tux Paint – Drawing tool for kids. Scratch – Coding for beginners. Stellarium – Astronomy ...

What is freelancing and how to start earning Online as a beginner?

What is freelancing and How to start earning Online as a beginner? Free lancing means being independent, free to choose the workplace, free to choose the schedule and free to choose your wages. Everybody has to do something for living, a business or a job. Freelancing is in between business and job, it is like a business to provide paid services to your client or a customer. People now a days take this term for online jobs or some IT work only, but its not the same. You can provide any service from home or at your own workplace.   2.    What is difference between freelancing and remote jobs? Freelancing is providing your services for a project, you are totally responsible to complete that project in time, customer has nothing to do with your working hours or work place.   While remote job is employment where an employer hires you for some project and you are duty bound to work at your home or some workplace (remote) with a timetable and daily tasks given by...

How to avoid plagiarism in Ai generated Article and top 9 plagiarism detection tools ?

How to avoid plagiarism in Ai generated Article and top 9 plagiarism detection tools ? To avoid plagiarism  in Ai generated Article for a website or a blog , follow these guidelines: 1. Cite Sources Properly:    When using information, quotes, or ideas from other sources, provide proper citations. Follow the citation style (APA, MLA, Chicago, etc.) recommended by your institution or publication. 2. Paraphrase and Summarize:   Instead of copying verbatim, rephrase the information in your own words while maintaining the original meaning. Remember to cite the source even if you've paraphrased. 3. Use Quotation Marks:    When directly quoting a source, use quotation marks and provide an accurate citation. This indicates that the text is directly taken from another author. 4. Understand Plagiarism Policies:   Familiarize yourself with the plagiarism policies of your institution, organization, or platform. Different entiti...