Menu
Coddy logo textTech

Item list styling

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

Let's add styling for list items; using this, you will be able to adjust icons properly.

challenge icon

Challenge

Easy

Target list items from the navigation class and the unordered list .navigation ul li:

  1. Set the height, width to 35px and margin to 1rem.
  2. Set the padding to 0 1rem.
  3. Set the color to anything you like! (recommended: white)
  4. Set the border-radius to 50%.
  5. Set display to flex, align-items, and justify-content to center.
  6. Add the below styling:

    cursor: pointer;
    transition: all 0.2s linear;

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