Posted by See through text box???

J4yson (#138568)

King of the Jungle
View Forum Posts


Posted on
2018-04-07 05:22:32
hey, i was wondering if there was a code to have the background of the text box scroll box thing with a see through background?
Thanks



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-04-07 09:02:29
Hiya!

This would have to be accomplished by using CSS.

CSS Code:
.divname {
background: rgba(###, ###, ###, 0.5);
overflow: auto;
width: #px;
height: #px;
}

HTML:
<*div class="divname"*>Text<*/*div>

The underlined parts is where you can change to whatever your heart desires. It could be transparentBox, seethrough or anything you could really remember for the div class.

Be sure to replace any #'s with numbers and remove any *'s. However, with the background being set to rgba, instead of hex values you'll need RGB values of colors instead. You can change the 0.5 to anything you want, that part will control the transparency of the div. It will be set to 50% transparency with this code, any transparency you want will need to be in decimal form.

Example of background: rgba:
.divname {
background: rgba(255, 20, 147, 0.5);
}

This will be a deep pink with 50% transparency once it's assigned to a div box.

I hope it helps!



Hrt Icon 0 players like this post! Like?

J4yson (#138568)

King of the Jungle
View Forum Posts


Posted on
2018-04-07 17:48:01
ah thank you so much! you're an awesome coder



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-04-07 17:51:20
Aww, thank you!

No problem!



Hrt Icon 0 players like this post! Like?







Memory Used: 622.60 KB - Queries: 1 - Query Time: 0.00043 - Total Time: 0.00405s