Space between two background images

Neha Prakash

I'm working on wordpress for the first time. And I'm trying to add background images to the title. The title should look like this. enter image description here

Till now I'm able to achieve till this level. enter image description here

I want to have space between two images, how to do that? My CSS is

.page-id-157 .widget-title{
height: 45px;
padding-left:70px;

    background-image: url('images/stripe_red_diagonal.png'),url('images/logo_outline_black.png');
    background-repeat: no-repeat;
     background-position:20px 10px;
    }

How to give space between two background images? any help would be appreciated.

m4n0

You need to modify the background-position value for the 2nd image separated by a ,

150px is the horizontal offset from the start point of the images and should be greater than the size of the first image.

.widget-title {
  height: 45px;
  padding-left: 70px;
  background-image: url('http://placehold.it/100x100'), url('http://placehold.it/100x100/333');
  background-repeat: no-repeat;
  background-position: 20px 10px, 150px 10px;
}
<div class="widget-title"></div>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to remove white space between two images

From Dev

Is it possible to fade between two view background images?

From Dev

Adding space between images?

From Dev

Adding space between images?

From Dev

how to create arrow between two background images in css

From Dev

Space between images in GridView Android

From Dev

Loop between two images

From Dev

blockproc between two images

From Dev

Switching between two images

From Dev

Loop between two images

From Dev

jQuery Fade Between Background Images

From Dev

Transition between CSS background images

From Dev

How can I set background color for the space between two x grid in AchartEngine

From Dev

How can I set background color for the space between two x grid in AchartEngine

From Java

Why does the extra space between two inline-elements get filled with background-color, but it doesn't for the space between two inline-block elements?

From Dev

Is it possible to insert links between two background images [one is a set of opening doors]

From Dev

Remove space between two trapezoids

From Dev

Space between two dynamic divs

From Dev

Filling the space between two rectangles

From Dev

Unexpected space between two divs

From Dev

Space between two dynamic divs

From Dev

Filling the space between two rectangles

From Dev

Remove space between two trapezoids

From Dev

Remove weird space between images in bootstrap

From Dev

Space between images grows on browser shrink

From Dev

Slick slider: adding space in between images shown

From Dev

CSS - Space between border and background color

From Dev

White Space Between SVG Background Repeats

From Dev

Increase space between border and background-image

Related Related

HotTag

Archive