Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
SVG is offset in navbar

I am making my webpage in ReactTS. I made a navbar and I wanted to add some SVGs from MUI Material Icons. But my only problem is that the SVG is a bit too high:

Screenshot

Already tried setting the position to inherit but also had no effect, here is the CSS:

nav {
  position: fixed;
  display: block;
  margin: auto;
  top: 0;
  width: 100%;
  height: 50px;
  padding-left: 10px;
  font-size: calc(10px + 2vmin);
  background-color: #3e424d;
  color: white;
}

svg {
  position: inherit;
}

Could anyone help me? I am not good at CSS

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Thanks to @Marshall, I could fix it by adding:

display: flex;
align-items: center;

(Also removed position: inherit;)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!