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
- Proper usage of wp_is_mobile()?
- WP 4.4. responsive images browser choosing the “wrong” one
- How to insert pictures without hard coded dimensions?
- How-to make the admin area mobile friendly [closed]
- Images all broken after migration and upgrade
- “There has been an error cropping your image” when cropping image
- Featured Image in 4.4 should be larger on mobile device
- How to use the responsive images feature from WP 4.4 in your themes
- Don’t load scripts if on mobile/tablet
- How can I make new .css file in child theme override styles in child theme’s style.css
- wordpress responsive image srcset not working
- Get a list of all image sizes that match aspect ratio of original one
- Responsive Images Resizing Images
- Adding an image slider in the header of my site
- WP Responsive images – upload custom image sizes
- From where the header-text can be changed in WordPress custom header?
- Display posts from a different website on Genesis Responsive Slider
- Best practice for query_posts in responsive design?
- Using SRCSET with Images and Featured Images
- Responsive Images Warping
- Old Site displays on Mobile View, not New Site
- Implementing the twentythirteen responsive menu in twentytwelve
- Elements floating on top of each other when Resizing or checking site on mobile. Twenty Twelve
- No responsive design is displayed
- Need help with making a website where user can add products
- Best method for loading content on mobile – issue with wp_is_mobile
- Reduce size of responsive title
- Understanding WordPress image sizes and responsive images
- header_image() with CSS
- Why is only one page responsive? [closed]
- Different header for each page in child theme of twenty thirteen
- Change a Page’s Header Image
- magic “MENU” button under Twenty Twelve theme
- How do I provide for multiple crops of the same image in a theme?
- Change position of header image with default 2019 theme
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- How do I get the access type in WordPress?
- WordPress 4.4 responsive sometimes doesn’t work
- Different header image ‘Home’ and Pages
- Disable the admin bar / probleme with responsive menu
- Trying to use shortcode for a plugin on custom homepage of Responsive theme
- $is_iphone – to redirect a page
- Show latest posts on responsive theme
- Button and Countdown overlapping mobile menu
- Change header image with editor profile
- What’s are some best practices for responsive images (e.g. for section headers)?
- making wordpress gallery responsive
- Is there a standard technique or API for getting the site header image?
- How to echo images Urls from a wordpress post, that are relally in the post
- Responsive loop with 3 columns inside row then 2 columns
- Mobile menu displays submenus on top of parent. Need it to display right below on an own line
- How do I make my products on the homepage responsive?
- Replace header with large image on home page only, using Genesis child theme
- Responsive Images – Defining
- Exiting Customizer alert
- How to overlay a webcomic plugin on top of a header image?
- Change the template of my Blog entries
- Responsive Images with art direction
- WordPress Multisite header img src is lost from staging to production
- Show a page of non-standard-sized featured images
- menu mobile show up even i in desktop mode in Newspaper Theme
- Bootsrtap.css overlap style.css in custom wordpress theme
- WP Theme Customizer – Responsive Elements
- How to output built-in widgets with number in range as class?
- Set start page depending on screen width [closed]
- Turning a WP Site Into an iPhone/iPad App [closed]
- Customizing Responsive Themes Menu [closed]
- responsive screen not working [closed]
- I would like to hide menu on desktop but still have it visible on small screen
- Remove srcset thumbnail attribute for products in the WooCommerce shopping cart
- Responsive Menu: Center vertically [closed]