Try the line-height property.
For example, 12px font-size and 4px distant from the bottom and upper lines:
line-height: 20px; /* 4px +12px + 4px */
Or with em
units
line-height: 1.7em; /* 1em = 12px in this case. 20/12 == 1.666666 */
Related Posts:
- draw diagonal lines in div background with CSS
- What’s the difference between SCSS and Sass?
- How to insert spaces/tabs in text using HTML/CSS
- How to make the HTML link activated by clicking on the
- ?
- How would you make two s overlap?
- CSS “margin: 0 auto” not centering
- CSS text-align not working
- How can I insert vertical blank space into an html document?
- How can I make Bootstrap columns all the same height?
- Align text to the bottom of a div
- How to make a
- display in a horizontal row
- CSS3 Scale Animation Keyframes
- JavaFX css themes
- Border Position
- Bootstrap align navbar items to the right
- Detect if a browser in a mobile device (iOS/Android phone/tablet) is used
- Responsive Canvas in Bootstrap column?
- How to get multiple images to auto resize and stay centered within a div
- How do you avoid caching during development?
- Are there Gutenberg container blocks?
- How to specify a class added to my gallery
- Get parent category class in post_class()
- Assign title-specific class to list items in menu based on WP pages
- Why won’t child theme’s style.css override plugin’s css
- WordPress – https : Css and Js files are not working (load on http instead of https)
- some things in child theme css not overriding parent
- Is it possible to create a full width row in WordPress’s editor window? [closed]
- How do I find (index) file in order to change style on CSS?
- Enqueue style for Password Reset page
- How to change header & footer to full width? [closed]
- Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device
- Remove WordPress/Gutenberg button styles for ACF blocks
- If post by specific role different css to everyone
- Theme Check errors about missing CSS rules
- removing my underline from hyperlinks
- How to override Gutenberg admin CSS
- WordPress stripping out BR tags, need assistance
- Use wp_add_inline_style to add code to before wp_head?
- How to Remove White Space above video Block
- Font Awesome wp_enqueue_style
- How to enqueue a random css style?
- Output terms to post_class()
- Layout using Bootstrap not aligning correctly
- No styling on fresh wordpress installation
- How to include .css code in a WordPress page template?
- Enqueue Style Function Not Loading
- What’s the best way to add the LESS preprocessor to a WordPress theme?
- How to use Japanese characters for a single page
- Certain aspects of site suddenly not working in Chrome and Firefox
- What makes WP so SEO friendly?
- what could cause get_stylesheet_directory_uri() to fail?
- Delete a white space using css
- wordpress css file
- CSS – Initial HTML Margin Issue On WordPress Site
- Cannot set property ‘className’ of null at setThemeFromCookie
- Can not find css directory in header
- jQuery UI Theme that aligns perfectly with the admin UI
- CSS – why does my sidebar drops to the bottom of the page? [closed]
- How can I force Dynamic CSS via ACF values to update on page load?
- WordPress backend is loading without style
- Show product information on right side [closed]
- How to integrate Bootstrap Grid System in WordPress
- After I change CSS not updating in the browser
- Show/Hide Div for Login Mask
- Where are the contents of WP_Head
- When replacing #site-title with an image – why must it be located in root?
- Hide Overflow on a Specific WordPress Template
- Google Chrome CSS issues [closed]
- ACF Gut block broke wordpress default style?
- Scroll code block instead of wrapping text
- Divi CSS Flex/Margin Error
- How to make a function to play only on the home page?
- Redirect Css files to https
- How can I add a stylesheet to the Classic Editor page?
- Where to add this code for a Modal box to work? [closed]
- How to enqueue stylesheets in child-theme functions.php?
- Change class value using CSS
- Dequeue CSS of the Parent Theme
- Unable to use Datepicker in a table when inserting a row
- Text editor toolbar z-index conflict with location plugin pop
- Hide a div class on WordPress ID (Based on template) [closed]
- div:before appearing in front of the block
- How to replace wordpress css or js file with external file?
- How do I move my logo from the center to left (Pixgraphy theme)
- Page flickers when new html5 video loads
- Unable to properly load WordPress Admin page
- Change style of Twenty Seventeen child theme
- Disable CSS specific page
- Setting up Custom Background [closed]
- Customiser colour picker and best practice for updating css
- Editing anchor style in main navigation bar
- My contact form is not being responsive
- Align form elements with css
- Load specific js & css based on class or ID?
- I can’t change the background color of a specific page
- Add HTML input tag to to site navigation
- What can cause JavaScript and CSS files to be minified?
- 100% Width Footer – Custom Child Theme
- Bullet List Indentation not showing up in the wordpress
- I want to Hide CSS ID for specific user roles