Nefa
New Member
Posts: 57
inherit
200522
0
Aug 5, 2019 12:12:11 GMT -8
Nefa
57
September 2013
mag314
|
Post by Nefa on Jun 30, 2014 16:44:54 GMT -8
Forum URL: forgottenpurrsrp.boards.netHi, I have been having some difficulty creating a border image for a table I am working on on my forum. Before I get frustrated, I'd just like to know if it is possible to do. I've simplified the code I'm using so that no one has to dig through anything irrelevant to my question. [table style="border:20px solid image;border-image:url(http://i39.servimg.com/u/f39/15/55/73/97/oie_1010.jpg);"][tbody][tr][td style="background:#F8E0F1;padding:20px;"]hello testy test[/td][/tr][/tbody][/table] This is what it ends up looking like. |
Now, what I'd like is, instead of having a solid black border, I would like this image as my border. No resizing is necessary: I intentionally chose an oversized image for my own personal preference. It's fine if an image for a border is not possible, but I would like to know and help would be appreciated if it is possible. Thanks, nzt314
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Jun 30, 2014 16:53:32 GMT -8
Images can't be borders... but you can get the same effect by having a container outside your inner one with that images as a background so it looks like a border.
|
|
inherit
151011
0
Nov 25, 2023 5:40:04 GMT -8
nina
599
January 2010
nina1
|
Post by nina on Jul 9, 2014 3:21:20 GMT -8
Images can't be borders... but you can get the same effect by having a container outside your inner one with that images as a background so it looks like a border. I'd like to try it. How/where do you add images to the containers?
|
|
inherit
133146
0
Jan 7, 2024 2:07:03 GMT -8
Alanna 🥀🖤
3,564
November 2008
alannab
|
Post by Alanna 🥀🖤 on Jul 9, 2014 5:49:23 GMT -8
By adding background-image:url('IMAGE'); to a container.
|
|
inherit
151011
0
Nov 25, 2023 5:40:04 GMT -8
nina
599
January 2010
nina1
|
Post by nina on Aug 1, 2014 10:37:51 GMT -8
Thanks Trinity for thinking I'm that bright...but I'm not. Are we on the style sheet of a certain theme and exactly which line do I put what, exactly? eta: I don't know how I missed this...but I did.
|
|
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,870
December 2005
horace
|
Post by Chris on Aug 2, 2014 5:57:47 GMT -8
nina, although the border-image CSS is valid it is unfortunately not supported by Proboards at this time ( Image as Container Border on Proboards). It might even be beneficial to frame this (no pun intended ) as a feature request since I cannot think of any reason why this would have been left off the long list of things you can now do in V5 that you couldn't do in V4. There are a few inline CSS styles that Proboards will not allow since they have the potential of disrupting the layout or worse but unless I am missing something I don't see how border-image could be one of them. With that said, the workaround that was used before border-image was introduced can also be used here as @khristian implied: [div style="background:url(http://i39.servimg.com/u/f39/15/55/73/97/oie_1010.jpg) no-repeat center;width:150px;padding:10px;"] [table style="width:100%;"] [tbody] [tr] [td style="background-color:#F8E0F1;padding:20px;"]hello testy test[/td] [/tr] [/tbody] [/table] [/div]
It is obviously not as versatile as the border-image CSS especially since it's not automatically scaled to fit the dimensions of the element which is one of the main reasons that CSS property was created in the first place but it gets you part way there.
|
|
inherit
151011
0
Nov 25, 2023 5:40:04 GMT -8
nina
599
January 2010
nina1
|
Post by nina on Aug 2, 2014 8:19:31 GMT -8
Thank you Eton Bones. I think for now I will just make the suggestion to have the border image added to a V5 update.
|
|