Positioning Logo in Semantic UI

I used a 300 × 53 pixels size logo.png image and used the following code to position the image.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Semantic UI Responsive Menu</title>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.0/dist/semantic.min.css">
  </head>
    <style>
        .rubyplus-logo {
            padding-top: 14px;
        }
    </style>
  <body>

    <div class="ui stackable massive menu"> 
        <a href="https://www.rubyplus.com">
          <div class="ui small image rubyplus-logo">
            <img src="logo.png">
          </div>
        </a>

      <a class="active purple item">Articles</a>
        <a class="item">Snippets</a>
        <a class="item">Screencasts</a>
        <a class="item">Events</a>
        <a class="item">Gigs</a>
        <a class="item">About</a>
        <a class="item">Contact</a>

      <div class="right menu">
        <a class="item">Login</a>
        <a class="item">Subscribe</a>
      </div>
    </div>


    <script src="https://code.jquery.com/jquery-3.1.1.min.js"  integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="  crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.0/dist/semantic.min.js"></script> 

  </body>
</html>

The page looks like this:

Semantic UI Logo Positioning


Related Articles


Create your own user feedback survey