A good way to do it is this:
span + span { margin-left: 10px; }
Every span
preceded by a span
(so, every span
except the first) will have margin-left: 10px
.
Here’s a more detailed answer to a similar question: Separators between elements without hacks
Related Posts:
- How to get these two divs side-by-side?
- LaTeX: Multiple authors in a two-column article
- What’s the difference between align-content and align-items?
- How do I center an SVG in a div?
- Random gradient background color
- CSS Circle with border
- Center image using text-align center?
- Set line spacing
- CSS Background Opacity [duplicate]
- Using CSS for a fade-in effect on page load
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- How to make an image center (vertically & horizontally) inside a bigger div
- How to center text with Markdown?
- Disable Scrolling on Body
- CSS Background Image Not Displaying
- Changing image sizes proportionally using CSS
- Circle button css
- CSS Background Image Not Displaying
- How do you Hover in ReactJS? – onMouseLeave not registered during fast hover over
- What is correct media query for IPad Pro?
- Child theme css not overriding parent
- How to display a gif fullscreen for a webpage background?
- Padding a table row
- creating a chevron in CSS
- Is there a “previous sibling” selector?
- How to create spoiler text?
- jQuery scrollTop() method not working
- HTML / CSS table with GRIDLINES
- How to set background color in jquery
- How do I load a CSS style into WordPress admin area only?
- Use wp_enqueue_scripts, not wp_print_styles?
- Can’t get rid of minify after uninstalling W3 Total Cache [closed]
- How to solve ‘Eliminate render-blocking JavaScript and CSS in above-the-fold’ content for multiple files?
- wp_tag_cloud inline CSS
- How to link to a alternative page in CSS
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- Responsive background images added inline
- Change CSS when user is logged in
- How to add css classes to widgets using functions.php?
- Enqueued Stylesheet Version Number Not Being Appended
- WordPress doesn’t include css
- Understanding child theme functions.php
- is it possible to use post-type as part of a css selector in block editor stylesheet?
- Style every second widget?
- How to remove padding and margin between divi rows? [closed]
- Cannot figure out how to center div in WordPress theme [closed]
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Media Uploader in custom path
- Add Post Status to Body Class
- Why does my dissappear?
- How to make classes for posts?
- Remove transparancy in Sydney theme’s headerimage
- Bootstrap in theme
- How to align full div [closed]
- How to handle a background-size: cover image in WordPress?
- Ajax Search Lite: Customize Autoscroll
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How to change the full capitals font title of my WordPress Blog?
- How to style a specific nav menu item?
- How to add inline css code with background image in page html code?
- Page layout is broken when viewing search results.
- WordPress admin toolbar not loading styles after migration
- Change login CSS
- Passing dynamic options from backend to frontend
- JQuery undefined and Stylesheet loads in bottom along with js files
- str_replace inside specific css files [closed]
- Apply custom css for user role
- override a css style [closed]
- Block wordpress style for my plugin admin page
- Loading bbPress CSS file only on forum directory
- WordPress doesn’t recognise created theme
- Displaying images outside the content
- WordPress plugin development theme issue
- get_field values for each post on home page using wp_add_inline_style
- Two Filter Issue [closed]
- PHP function for horizontal Woocommerce thumbnails and badges
- CSS properties in textarea in the Customizer
- Apply only the css in my style.css file
- Stylesheet does not load despite functions.php
- The style.php file inside theme-engine folder has other content on FTP
- how to modify html on homepage (no home-page.php in my theme)
- how make wp include urls as https?
- Customize WP website specific column with CSS
- how does additional css rendering work?
- how to modify a field’s size in a metabox : ROWS height, and scroll control?
- I cannot make this position properly in WordPress [closed]
- Let user override plugin CSS
- Possible jquery / library conflict in plugin usage
- Specifying Class style for Menu
- wp nav menu – highlighting current page not working properly [closed]
- Image width issue in IE [closed]
- Put CSS on TOP, how?
- I am trying to apply these CSS rules to x3 Post-ID’s but I can’t get it to work – any idea how I can?
- In which file can I find the custom CSS code I entered?
- New to wordpress. Need Help with templates [closed]
- Some times CSS not Applying
- use another theme for just one page
- How can I insert a disclaimer in a WordPress site?
- Problems loading stylesheet and permalinks after rebooting
- CSS does not take effects and it doesn’t show in inspect [closed]