Here’s a good one:
Set line-height
equal to whatever the height
is; works like a charm!
E.g:
li {
height: 30px;
line-height: 30px;
}
More Related Contents:
- How to modify the css
- Space Gap on mobile devices
- Is there a CSS parent selector?
- Pure CSS to make font-size responsive based on dynamic amount of characters
- Disable LESS-CSS Overwriting calc() [duplicate]
- Is float for layout bad? What should be used in its place?
- How can I delay a :hover effect in CSS?
- Gradients in Internet Explorer 9
- How can I determine what font a browser is actually using to render some text?
- Can I use variables for selectors?
- Extending selectors from within media queries with Sass
- How to round out corners when using CSS clip-path
- CSS Input with width: 100% goes outside parent’s bound
- CSS3 Fade Effect
- How would you make two s overlap?
- why is my content showing outside the div?
- Why use an HTML5 semantic tag instead of div? [duplicate]
- How to make responsive table [closed]
- CSS Grid auto fit with max-content
- How do browsers deal with non-integer values for height and width?
- How to prevent different browsers rendering fonts differently?
- CSS How to set div height 100% minus nPx [duplicate]
- Gray out image with CSS?
- Bootstrap 3 Align Text To Bottom of Div
- What is the difference between default, user and author style sheets?
- CSS – style a link based on its “rel” attribute?
- There is a 4px gap below canvas/video/audio elements in HTML5
- Rounded side, not rounded corners
- CSS selector based on width?
- Turning off Twitter Bootstrap Navbar Transition animation