bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on May 8, 2018 12:08:42 GMT -8
Hello all! I was not exactly sure where to put this request, so I stuck it here! I'm asking for some code that will allow me to have two background images. It's almost imperative considering the theme layout I'm using and it would be a huge help if someone could help me figure this out
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on May 8, 2018 12:29:40 GMT -8
Hi, bai. If you're looking to have two background images show at the same time you'll need to specify two comma-separated background image URLs in their CSS. You'll also need to do this for any background properties you don't want them to share. For example, placing one on the top left of the page and another on the top right will require you to specify comma-separated background position values in the same order you specified the background images. In the example below two background images are specified in the background-image property. Neither of them need to repeat so only one value is specified for the background-repeat property so that it applies to both of them. Since we want both positioned differently the background-position property has two values specified. These values affect the images in the order you've specified them, so top left applies to the first image and top right affects the second one.
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on May 8, 2018 15:04:25 GMT -8
Hi, bai . If you're looking to have two background images show at the same time you'll need to specify two comma-separated background image URLs in their CSS. You'll also need to do this for any background properties you don't want them to share. For example, placing one on the top left of the page and another on the top right will require you to specify comma-separated background position values in the same order you specified the background images. In the example below two background images are specified in the background-image property. Neither of them need to repeat so only one value is specified for the background-repeat property so that it applies to both of them. Since we want both positioned differently the background-position property has two values specified. These values affect the images in the order you've specified them, so top left applies to the first image and top right affects the second one. the second image isn't displaying. i want one of the images to repeat and the other to be just the single version.
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on May 8, 2018 15:09:33 GMT -8
Can you link to a page showing the CSS in action?
Short of changing the properties I can't think of any reason the CSS I provided wouldn't work.
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on May 8, 2018 15:15:57 GMT -8
Can you link to a page showing the CSS in action? Short of changing the properties I can't think of any reason the CSS I provided wouldn't work. I'd be happy to! kordeination.boards.netHere's is the CSS I'm using as well, with the stuff I added in body { background-image: url(http://storage.proboards.com/6939141/images/twSibazOWieCIXfLVRRD.png), url(http://storage.proboards.com/6939141/images/OjT0cieAod0ehfJZYNmb.png); background-repeat: repeat, no-repeat; background-position: top right, top left; }
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on May 8, 2018 15:22:01 GMT -8
I guess one thing I forgot to mention is that the backgrounds will be stacked in the order that you specify them. The first image you specify goes on top, the next one goes beneath it, and so on.
If you were to switch the values of each of the properties around the second image should show how you want it to.
|
|
bai
Junior Member
I coughed. Then I went into labor.
Posts: 209
inherit
tbsofficial@outlook.com
241711
0
Sept 23, 2018 14:23:39 GMT -8
bai
I coughed. Then I went into labor.
209
February 2017
bai
|
Post by bai on May 8, 2018 15:25:21 GMT -8
I guess one thing I forgot to mention is that the backgrounds will be stacked in the order that you specify them. The first image you specify goes on top, the next one goes beneath it, and so on. If you were to switch the values of each of the properties around the second image should show how you want it to. I can't say thank you enough!
|
|