Former Member
inherit
guest@proboards.com
250400
0
May 4, 2024 2:02:52 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 10, 2018 17:31:16 GMT -8
Is there a code already made or can someone help me find a tutorial where I can add my own wrapper with a border? Thanks in advance.
|
|
inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
930
April 2006
purplescraps
|
Post by Beckea on May 10, 2018 21:13:37 GMT -8
/*wrapper css*/ #wrapper { border: 2px solid black; width: 84%; margin: 10px auto; padding:20px; }
Just change the numbers like you want them on your board. Using hex color instead of "black" "#000000;" This goes at the bottom of your stylesheet page. More 2px the thicker the border.
|
|
Former Member
inherit
guest@proboards.com
250400
0
May 4, 2024 2:02:52 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 11, 2018 6:19:02 GMT -8
Thanks Becky! Instead of having a solid color as the border can I add an image?
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Apr 28, 2024 7:51:16 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on May 11, 2018 8:40:13 GMT -8
You can indeed Shannt10. You can add the border-image property to the CSS Beckea provided. Not sure what image you want to use, but here's a link to W3Schools which gives plenty of interactive examples that can help you out with your specific image. Good luck!
|
|
Former Member
inherit
guest@proboards.com
250400
0
May 4, 2024 2:02:52 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on May 11, 2018 9:15:14 GMT -8
Thank you for the link. Am I able to add it to the wrapper?
Here's the code I'm using:
#wrapper { background-image: url('http://i67.tinypic.com/orphxs.jpg'); width:1000px; padding: 30px; }
|
|
Nori
Junior Member
Posts: 483
inherit
182806
0
Apr 28, 2024 7:51:16 GMT -8
Nori
483
September 2012
nori
|
Post by Nori on May 11, 2018 9:45:54 GMT -8
For sure, you can manipulate the wrapper as much as you can anything else. Background-image and border-image are two separate things, so you can set different images and combine their effects with no trouble.
For your wrapper, you don't really need to set the Width since your wrapper's size will be determined by your forum's existing size + the padding you set. If you want to add a border image as well then you can just add the border-image property I mentioned and linked to before.
I can't really give any code examples cause I don't know what you're using or what effect you want. The 'Play It' and 'Try it Yourself' examples linked in my previous post should give you a better idea of what to manipulate for the border-image property to achieve the effect you want.
|
|
inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
930
April 2006
purplescraps
|
Post by Beckea on May 11, 2018 17:57:48 GMT -8
Thanks Becky! Instead of having a solid color as the border can I add an image? Yes just put background-image: url(image.gif); Second to what Nori mentioned.
|
|