inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 13, 2021 20:35:35 GMT -8
Hello: I'm trying to create a new theme for my forum... allkindsofeverything.boards.netI was wondering how I might set about creating a partially transparent background for the containers like on this site so that the silhouettes of the theme background can be seen: army83.forums.netWhen I use the Visual Editor, I can set the background as transparent or colored but not both, so I would love some help on how to achieve this effect. Thank you so much in advance!
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Apr 13, 2021 20:44:35 GMT -8
They would be done using RGBA in the stylesheet. I have the following for the space theme, (which is default so you can see it) on my hobby forum. Basically you have to use RGBA where you want a partial transparency. Btw it works far better than the opacity tag. /* Forum wrapper background. */ #wrapper { background: rgba(15, 59, 92, 0.4); border: 1px solid #000000; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 0px 10px 0px 10px; margin: auto; box-shadow: 0px 0px 5px #000000; }
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 13, 2021 20:50:44 GMT -8
They would be done using RGBA in the stylesheet. I have the following for the space theme, (which is default so you can see it) on my hobby forum. Basically you have to use RGBA where you want a partial transparency. Btw it works far better than the opacity tag. /* Forum wrapper background. */ #wrapper { background: rgba(15, 59, 92, 0.4); border: 1px solid #000000; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 0px 10px 0px 10px; margin: auto; box-shadow: 0px 0px 5px #000000; } Love the look of your space theme, Nscalerr . You gave me this RGBA for the footer and copyright notice for a theme in the past and I added it to the Harry Potter theme which is accessible only to staff at the moment. background-color: rgba(250, 250, 250, 0.5); So would I then just substitute this code so that it looks like this: /* Forum wrapper background. */ #wrapper { background: rgba(250, 250, 250, 0.5); border: 1px solid #000000; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 0px 10px 0px 10px; margin: auto; box-shadow: 0px 0px 5px #000000; } Thanks so much!
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Apr 13, 2021 20:55:54 GMT -8
Prety much Shaliza. If you want to make something partially transparent, just target it with the css and add background: rgba(250, 250, 250, 0.5); with whatever colours and transparency you are after. Note, you have to whack it with a big hammer by adding the !important tag in at times.
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 13, 2021 21:03:32 GMT -8
Prety much Shaliza . If you want to make something partially transparent, just target it with the css and add background: rgba(250, 250, 250, 0.5); with whatever colours and transparency you are after. Note, you have to whack it with a big hammer by adding the !important tag in at times. Thanks again for this. I love learning cool new stuff like this. Makes me feel tech savvy even though I'm not, LOL. Another question... how do I get rid of the extra border around the containers so that you have pretty much the default view? I thought taking out the following would help, but it did not? border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; Thank you so much! I really appreciate it.
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Apr 13, 2021 21:19:33 GMT -8
That won't do anything much as all it does is control how much curve you have in the corners.
Think if you remove all of the following it will have the desired effect.
border: 1px solid #000000; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 0px 10px 0px 10px; margin: auto; box-shadow: 0px 0px 5px #000000;
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 13, 2021 21:30:59 GMT -8
That won't do anything much as all it does is control how much curve you have in the corners. Think if you remove all of the following it will have the desired effect. border: 1px solid #000000; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 0px 10px 0px 10px; margin: auto; box-shadow: 0px 0px 5px #000000; I tried this and it did take care of the left and right extra borders, but there's still the transparency in-between the sections and also for the title and footer, so not sure how I can remove those? Thanks again.
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Apr 13, 2021 21:36:41 GMT -8
I'm not sure either Shaliza, maybe the powers that be may know more.
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 13, 2021 21:39:30 GMT -8
I'm not sure either Shaliza , maybe the powers that be may know more. Ok, I'll see once the Admin team comes in the morning if anyone can shed some light on the matter. Thanks again for all your help. I learned a lot of interesting things today.
|
|
Kami
Forum Cat
Posts: 40,204
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,204
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Apr 14, 2021 1:03:50 GMT -8
Could you show a screenshot that points to the transparancy you want to remove, please? (: I suspect the specific child containers also have borders around them, so removing the borders created a "gap" between each child container.
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 14, 2021 20:35:15 GMT -8
|
|
inherit
140147
0
Nov 19, 2024 5:07:22 GMT -8
Nscalerr
Throw me to the wolves and I'll return leading the pack!
3,043
May 2009
nscalerr
|
Post by Nscalerr on Apr 14, 2021 23:01:05 GMT -8
I have the following for just the containers on the space theme. To make it easier I created a central source for the background colour.
@rgbabackground: rgba(15, 59, 92, 0.7); .threads .content { background: @rgbabackground; } .boards .content { background: @rgbabackground; } .stats .content { background: @rgbabackground; }
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 14, 2021 23:20:58 GMT -8
Thank you for that, Nscalerr. I really appreciate it. I'm off to get some sleep now, but I will play around with that coding tomorrow. Thanks again!
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,018
January 2018
retread
|
Post by Retread on Apr 14, 2021 23:48:41 GMT -8
I would like the transparency to only extend to the containers like in this site: dbzforum.boards.netHi Shaliza Earlier you were using a selector that covered more than the areas of interest (#wrapper). Let's remove that for now. Instead, this should target just the content area containers and not the gaps between categories or the title bars. /* See-thru content area containers */ .container {background: rgba(253, 158, 255, 60%);} /* End of Section */ Season the rgb to taste. I picked an alpha level (60%) that looks okay to me. Increase it for more readability or decrease it to allow the background image to be more visible. (I would have loved to have been able to have you apply the color through the Visual Editor, but it truncates the rgba color statement because the input area can't handle enough characters.)
|
|
inherit
200292
0
Feb 19, 2016 22:51:40 GMT -8
Shaliza
"Laughter is timeless, imagination has no age, and dreams are forever." - Walt Disney
545
September 2013
shaliza
|
Post by Shaliza on Apr 15, 2021 21:23:37 GMT -8
Hi Shaliza Earlier you were using a selector that covered more than the areas of interest (#wrapper). Let's remove that for now. Instead, this should target just the content area containers and not the gaps between categories or the title bars. /* See-thru content area containers */ .container {background: rgba(253, 158, 255, 60%);} /* End of Section */ Season the rgb to taste. I picked an alpha level (60%) that looks okay to me. Increase it for more readability or decrease it to allow the background image to be more visible. (I would have loved to have been able to have you apply the color through the Visual Editor, but it truncates the rgba color statement because the input area can't handle enough characters.) Thank you so much for this coding, Retread. It worked great. Taking out the "forum wrapper" part of things definitely helped. One teeny tiny thing... there is a tiny corner of transparency that extends beyond the corners of the containers. It's barely visible, and I can certainly leave it as it is, but since inquiring minds want to know, is there anyway to eliminate this? I left the alpha level at 60% for now and I'm not sure if changing this might help, so I will try that in a bit. And yes, it would be nice to have the RGBA segment be built into the Visual Editor. Would make things a lot easier. Maybe it will be on the books for V6. Thanks again.
|
|