html question

Asked 1 weeks ago, Updated 1 weeks ago, 1 views

<!DOCTYPE html><html>
<head>
  <title> burdock</title>
  <meta charset="utf-8">
  <style>
    #topmemu{
      height: 30px;
      width: auto;
      vertical-align: top;
    }
    #topmemu li {
      list-style: none;
      color: white;
      background-color: #2d2d2d;
      float: left;
      line-height: 40px;
      vertical-align: middle;
      text-align:  center;
    }
    #topmemu .topmemulink{
    text-decoration: none;
    color: white;
    display: block;
    width: 200px;
    font-size: 15px;
    font-weight: bold;
    font-family: "Trebuchet MS", Dotum, Arial;
    }
    #topmemu .topmemulink:hover{
      color:red;
      background-color: #4d4d4d;
    }
  </style>

</head>
<body>
  <img src="logo.png" width="150px">
  <nav id="topmemu">

    <li><a class="topmemulink" href="ing 1.html" >ing1</a></li>
    <li><a class="topmemulink" href="ing2.html" >ing2</a></li>
    <li><a class="topmemulink" href="Ying Ying 3.html" >Ying Ying 3</a></li><

  </nav>

What should I do to make the top bar stick next to the picture?

html css

2022-09-20 11:37

1 Answers

If you have any answers or tips


© 2022 pinfo. All rights reserved.