question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to center buttons vertically in navbar

See original GitHub issue

It should be possible to center button in navbar. Additionally if class for waves is added it breaks vartical align as the display is no longer inline-block.

Other issue is when assigning non default color to button it loses :hover effect.

navbar

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Dogfalocommented, Feb 27, 2015

It wasn’t a problem for me, I just added vertical-align: bottom;

0reactions
JayHoltslandercommented, Jan 15, 2020

It wasn’t a problem for me, I just added vertical-align: bottom;

That won’t work with a <a class="btn right" href="">Floated</a>

Here’s the (SCSS) fix for anyone looking for it.

nav {
  .right {
    .btn {
      margin-left: 1em;
    }
  }
  .btn {
    display: inline-block;
    vertical-align: middle;
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS how to vertically center buttons in nav bar vertical align ...
I was wondering how to vertically center buttons in my navigation bar. Right now, they look like this and I want them to...
Read more >
How to set vertical alignment in Bootstrap ? - GeeksforGeeks
In Bootstrap 5, if we want to vertically align an <div> element in the center, we can do this by applying the class...
Read more >
How To Center a Button in a DIV Element - W3Schools
Learn how to center a button element vertically and horizontally with CSS. Centered Button. How To Center a Button Vertically. Example. <style> .container...
Read more >
Button group - Bootstrap
Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.
Read more >
CSS Vertical Align for Everyone (Dummies Included)
We Want to Center the Content, Not the Div Itself! ... You have two approaches. If you only have some div elements with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found