Simply put…
You can either add this to the background properties:
background-size: contain;
This will have the image scale proportionately to consume the available area.
Or you can change the image to NOT be a background image. That will allow you to set more relative dimensions (like a fixed height or width with an auto value on the opposite).
Contain on the background-size will work better without adjustments to the rest of the menu, however.
And yes, you will still need to pad the area unless you want to increase the available dimensions of that container it’s in. Otherwise it’s a sliver (the background image). Alternatively, you could have a set height because then the image would contain to fit.
Related Posts:
- make WordPress image captions responsive
- Responsive Theme Design: how have slideshow on desktops/tablets and static photo on mobile using same template?
- How to get attachment id of background image?
- Pb with responsive image sizes in WP 4.4
- Change function in responsive theme
- $content_width for responsive UI
- How do I make featured images retreived by the_post_thumbnail() responsive?
- GIF featured image is resized on server but not used in frontend. Why?
- Responsive 2 column staggered layout client expectations vs reality problem
- Responsive Video Max-width
- How to force the twentyfourteen narrow screen layout to apply to wide screens?
- twentythirteen h1 and h2 not resizing responsively
- YouTube video goes over sidebar [closed]
- Wp_List_Table not responsive
- mobile vs responsive sites [closed]
- Whitespace between logo and site title in Twenty Twenty-Two
- Responsive Theme Design: how have slideshow on desktops/tablets and static photo on mobile using same template?
- responsive not working
- I want to add “View Desktop Version” for mobile visitors for my wordpress site
- Navigation Menu Rendering Issue on Windows 10
- nextgen pro horizontal filmstrip moves up as browser narrows
- The hyperlink not responsive with post? [closed]
- Create various image sizes ad hoc
- Trouble with responsivitizing my twentythirteen header
- site is loading fully zoomed in on mobile devices
- Show content based on width?
- making images scalable for responsive designs [closed]
- Is Twenty Eleven Theme Responsive ? any update? [closed]
- How I can add responsive font size in theme.json file
- How to get WordPress Dataviews component responsive?
- Media queries in Sass
- Full width image in separated row on wordpress (Ref attacted)
- How do I disable responsive images in WP 4.4?
- Proper usage of wp_is_mobile()?
- How do I change the header image height in Twenty Seventeen?
- WP 4.4. responsive images browser choosing the “wrong” one
- the_post_thumbnail responsive srcset not populating with custom image size
- How to insert pictures without hard coded dimensions?
- Create image formats with different qualities when uploading
- How-to make the admin area mobile friendly [closed]
- How can I set image sizes and still have responsive images using the srcset attribute?
- Images all broken after migration and upgrade
- WordPress Gutenberg Embed Blocks Are Not Responsive
- How-to add rewrite rules to point the uploads folder to a subdomain
- Responsive Images
- WP 4.4. responsive loads normal image after loading the responsive image
- Why is wp_get_attachment_image_src returning wrong dimensions? [duplicate]
- the_post_thumbnail scaling not hard cropping
- Optimal approach for replacing the 8 header images in a child theme?
- What to do with unattached logos and header uploaded via native wordpress uploader?
- Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap
- Making WordPress Gallery (.gallery-item) Responsive?
- Implementing Zurb’s Interchange Into WordPress
- “There has been an error cropping your image” when cropping image
- Using FlexNav with WordPress [closed]
- Featured Image in 4.4 should be larger on mobile device
- WP 4.4 aspect ratio with responsive image
- Featured Image Inherited from Parent Page
- Use a higher than 230px logo image with 2013 theme
- How to use the responsive images feature from WP 4.4 in your themes
- WordPress core responsive video not working with shortcode
- How to oEmbed from custom field, responsive to container size and responsive
- Generating Responsive Background Image Sizes in PHP
- How can I serve different images depending on screen size with wordpress
- Benefits of storing uploads in an assets folder?
- Don’t load scripts if on mobile/tablet
- Change theme based on window size
- Run shortcode at certain resolution
- Trying to load a responsive CSS media query using Custom Taxonmy
- Two column layout using Bootstrap [closed]
- Display different header images based on current page
- How can I make new .css file in child theme override styles in child theme’s style.css
- How to remove header images from all pages except the home page? skeleton theme
- How to Make WordPress Default gallery responsive on mobile?
- wordpress responsive image srcset not working
- Responsive background images added inline
- How can i disable a plugin for a mobile phone?
- Responsive Images – Add srcset attributes to custom Images Function
- Get a list of all image sizes that match aspect ratio of original one
- Different custom header image on different page
- How can I make wp default gallery responsive?
- How to switch css files according to devices and button click?
- How can I set a different specific header image on each page?
- Manipulate Output of wp_list_something: select menu instead of li’s
- How to exclude an image size from the WordPress srcset
- Get specific image size for small viewport width
- Responsive Images Resizing Images
- Change header image loaded by jQuery to use HTTPS
- Adding an image slider in the header of my site
- What tags should be used for themes to show the type of layout?
- ACF Plugin – Random Gallery Image with wp_get_attachment_image()
- Featured image (responsive) above content is too small after update to WordPress 4.4
- Video to stretch across the entire homepage [closed]
- Meta tag viewport
- How to display a different image size for mobile
- What controls responsiveness in WordPress?
- Can’t show custom post thumbnail sizes as background images
- Remove an uploaded header image
- Convert WP Menu to a Drop Down for Mobile browser
- How to make wordpress theme iframe responsive