Discussion Locked

HTML Navigation Menu Alignment Issue

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm working on a navigation menu for my HTML page, but it's not behaving as expected. The links aren't aligning properly, and the styling seems a bit wonky. I've included the code below. Can anyone help me figure out what's causing this navigation headache?

This my Code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navigation Woes</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<nav>

  • Home
  • About
  • Services
  • Contact

</nav>

</body>
</html>

The aim is to have a simple navigation menu, but it's not looking quite right. The links aren't aligning properly, and the styling feels off.

1 reply

by kees_b edited

Impossible to answer without looking the contents of styles.css being avalailable.

But it seems clear you need to apply some styling or change the current styling for the li-tags. It looks fine in your post (which, of course, doesn't use your styling, just default or its own.

This discussion is closed to new replies.