G
G
greenfox072018-08-31 20:58:04
Layout
greenfox07, 2018-08-31 20:58:04

How to layout the menu correctly?

Interested in the main question. How to make it so that when deleting or replacing the logo, the menu does not move out.
Need like this: 5b89819798390247286114.jpeg
My code:
HTML

header.header
  div.container
    nav.navbar
      ul.navbar__menu
        li.navbar-item: a(href="#") ABOUT ME
        li.navbar-item: a(href="#") PORTFOLIO
        li.navbar-item.logo: a(href="#") JD
        li.navbar-item: a(href="#") MY BLOG
        li.navbar-item: a(href="#") CONTACT ME

css
.navbar {

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../img/logo/logo-bg.png") no-repeat;
    width: 302px;
    height: 302px;
    margin-top: 15px;
    & a {
      font-family: @sea-font;
      font-size: 188px;
      line-height: 166px;
      text-transform: uppercase;
      letter-spacing: 0.94px;
      color: #f6edd8;
    }
  }
  &__menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  &-item {
    margin-top: -15px;
    & a {
      font-family: @bazar-font;
      font-size: 54px;
      line-height: 22px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
      color: @menu-color;
    }
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
A person from Kazakhstan, 2018-09-01
@greenfox07

https://jsfiddle.net/ngz93vre/8/ like this, probably ...
correct the font and gaps

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question