Menu
Coddy logo textTech

Navbar styling

Lesson 9 of 12 in Coddy's Bottom Navigation Bar - HTML/CSS Project course.

Let's style the nav bar!

challenge icon

Challenge

Easy

Target “navigation” class:

  1. To set a position:

    a. Set the position to absolute.

    b. Set the bottom to 32px.

    c. Set the border-radius to 24px.

    d. Set the left position to 50%.

  2. Add the below transition styling:

    transform: translate(-50%, 0);
  3. Set the background-color to anything you like! (recommended: purple)

Try it yourself

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="styles.css">
</head>
    <body>
        <!-- Write HTML code here -->
        <script src="script.js"></script>
    </body>
</html>

All lessons in Bottom Navigation Bar - HTML/CSS Project