The path can either be full or relative (of course if the image is from another domain it must be full).
You don’t need to use quotes in the URI; the syntax can either be:
background-image: url(image.jpg);
Or
background-image: url("image.jpg");
However, from W3:
Some characters appearing in an unquoted URI, such as parentheses, white space characters, single quotes (‘) and double quotes (“), must be escaped with a backslash so that the resulting URI value is a URI token: ‘\(‘, ‘\)’.
So in instances such as these it is either necessary to use quotes or double quotes, or escape the characters.
Related Posts:
- Vertically align text within a div
- Insert image after each list item
- How to add a color overlay to a background image?
- Change color of PNG image via CSS?
- In CSS what is the difference between “.” and “#” when declaring a set of styles? [duplicate]
- How to completely remove borders from HTML table
- How to fix a footer overlapping content?
- What is element.style and why is it overriding my css settings?
- What’s the HTML to have a horizontal space between two objects?
- Overflow Scroll css is not working in the div
- CSS Div width percentage and padding without breaking layout
- CSS div width not working
- How to place Text and an Image next to each other in HTML?
- What does the “~” (tilde/squiggle/twiddle) CSS selector mean?
- Contain an image within a div?
- Failed to decode downloaded font
- How to make fixed header table inside scrollable div?
- CSS fill remaining width
- How to align this span to the right of the div?
- TinyMCE: adding CSS to format dropdown
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How to conditionally enqueue a stylesheet only for a certain page(s)?
- Is there a quick way to remove inline css from all posts?
- How to remove CSS file in the header using WordPress functions?
- wp_get_archives() – Get CSS selector for current month
- Do I only need to import style.css for a child theme?
- Disable child theme css on certain pages
- How to load a css file in one page only?
- How to add custom fonts in WordPress site
- Handling URLs in WordPress application
- Extending content width with twentyfourteen theme
- Override load-styles.php with admin screen css
- CSS file not registering through add_action
- Custom Admin CSS styles to style media uploader?
- getting url in wp_enqueue_style
- Gutenberg Additional CSS Class without modifying theme?
- What controls responsiveness in WordPress?
- Eliminate render-blocking JavaScript and CSS in above-the-fold content
- Unable to load CSS file (HTTP 403)
- Dynamic sidebar nav with current page highlighting
- how to setup content on a static frontpage with css and xhtml
- wp_enqueue_style – CSS Not loading – ERR_TOO_MANY_REDIRECTS [closed]
- Help with child theme enqueuing additional css files
- How to integrate my HTML and javascript into my child theme
- Why does my caroussel gallery do this in responsive? [CSS] [closed]
- Website CSS not loading [closed]
- Custom styles dropdown in TinyMCE editor – not working with headings
- Load CSS in footer, like your can with JS?
- Correct Way To Make Changes To A WordPress Theme
- Move Sidebar from Above Content To Below When Responsive [closed]
- Understanding how the class family `inner-container` works
- How to deal with logo color on dark mode?
- Header background image just stopped working
- HTML email sent with wp_mail shows plain text
- Change Header Image on Blog Post for Mobile View
- Add second background-image on hover
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- Having a hard time linking my css and JS files on a Boostrap to WP conversion
- Reduce font size [closed]
- Using css class selectors on a specifc page [closed]
- How can I force the WordPress visual editor to preserve the line breaks after paragraphs?
- Common page width? [closed]
- WordPress Rest Api access the header and extract stylesheets URL
- Login validation on wordpress
- How to create CSS Counters for Comments (depth 5)?
- Navbar bg to overflow to section below (updated)
- Add top parent page id to body class
- How can customized CSS on WordPress highlight the blog title in white when it’s not intended?
- Are there any CSS classes for the wordpress colours?
- Set different css stylesheet for specific pages [duplicate]
- Desktop is class List and Mobile is class Grid
- Include ElementorPro css into WordPress custom page
- Customizing the CSS for the post/page editor?
- My Child Theme CSS Isn’t Working
- current menu item hover not working?
- how to load basic wordpress css
- Fonts are not applying
- header background color changed after drop & import database in phpmyadmin
- Add class when more page is visited
- How do I make a child theme’s style.css load after plugin css?
- Css style removed but still showing via CDN even after clearing browser cache and purging all caches for site
- Floated element floats into post content in IE, Safari, and Chrome
- How to include backend buttons css on frontend?
- Managing large CSS files [closed]
- How would I use a media query to make my entire theme responsive or fluid? [closed]
- Clear white line off page [closed]
- Strange symbols on page [closed]
- css .active dropdown selects all links
- background changed after WordPress update
- How to make this splash page responsive
- Menu is not styled properly and footer as well [closed]
- Footer in middle of page in different browers [closed]
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Why is the image in div not displayed in full-size?
- How do I add JS and CSS to WP (Flatsome)
- ACF Extended : Disable styles in front [closed]
- How to avoid problems caused by new block-library default CSS rules (wp 6.1.1)
- Grid problem on privew mode
- Disabling double vertical scrollbar and horizontal scrolling?
- Customize margin between paragraphs using the Gutenberg Style editor