jayuh
New Member
Posts: 2
inherit
256011
0
Aug 9, 2018 10:37:05 GMT -8
jayuh
2
August 2018
jayuh
|
Post by jayuh on Aug 8, 2018 18:51:02 GMT -8
Hey! I've seen this question come up a few times but I think it's in a different context to this. I'm relatively new to proboards but I've played around with html/css in the past so I'm pretty familiar with this side of things. My question is about using background images in divs / individual posts.
I don't know if it's a good idea to do it and it was just an idea I had to make certain posts stand out in an RP my friends and I are setting up.
What I'm trying to achieve is to have a background image cover a div using the background-size property without it repeating. I'm not sure if this is possible on proboards and I'm sorry if this is answered somewhere else or in a guide somewhere or something. I have had a quick look and couldn't find anything.
The code I'm using right now is this:
[div style="background-image:url(image.jpg);background-repeat:no-repeat;background-size:cover;"]content[/div]
Not sure if I'm doing something totally wrong that I'm just not noticing for some reason or if it's just not possible within individual posts. Thanks for any help that can be provided!
|
|
inherit
Official Code Helper
65613
0
1
Apr 15, 2024 17:01:41 GMT -8
Chris
"'Oops' is the sound we make when we improve"
8,858
December 2005
horace
|
Post by Chris on Aug 8, 2018 19:20:59 GMT -8
You can easily test what Proboards bbcode styling accepts by writing out what you want to test on the BBCode tab, flip to Preview then flip back to BBCode to see what Proboards accepted and what it discarded. In the case of background-size property it gets removed but if you use it in the shorthand CSS3 form then it is accepted
[div style="background:no-repeat transparent center/cover url(http://storage.proboards.com/forum/images/defaultavatar.png);"]content[/div]
|
|
jayuh
New Member
Posts: 2
inherit
256011
0
Aug 9, 2018 10:37:05 GMT -8
jayuh
2
August 2018
jayuh
|
Post by jayuh on Aug 8, 2018 22:35:08 GMT -8
Ooh, thank you! Didn't think to try it that way!
|
|