HTML code for setting the opacity of a text box

Asked By 60 points N/A Posted on -
qa-featured

What is the code for creating a text box that can scroll down and in which I can be able to see the image behind the text? I need an HTML code that can set the opacity of a text box with specific size. Can anyone help me?

 

SHARE
Best Answer by Vinson forman
Answered By 0 points N/A #143500

HTML code for setting the opacity of a text box

qa-featured

Hi Isabella!

 

In this scenario that you want to see the background image in a textbox, you really the transparency style. You can do this by adding this line to your code: style = "background-color: transparent;". For example: <input type = "text" name = "textbox" style = "background-color: transparent;" />

 

Hope this can help.

Regards,

Jonn

Answered By 0 points N/A #143501

HTML code for setting the opacity of a text box

qa-featured

Hello, in order for the textbox to be transparent you have to set the background-color to transparent. You can do this by inserting this css code in an html, using the style properties. An example is:

<input type="text" name="name" style="background-color:transparent;" />

Add this code to the very beginning of your textbox tweaks to make sure it works. If it does not work, check for duplicated properties. If you want more customizations in your textbox, you can visit https://www.quackit.com/html/codes/html_text_box_code.cfm for more styles.

Happy coding!

Best Answer
Best Answer
Answered By 0 points N/A #194847

HTML code for setting the opacity of a text box

qa-featured

Hi Dear,

Thanks that you have shared you problem with us. I hope you will be satisfied by my answer.

HTML (Hyper Text Markup Language) is very vast code language.

You can find everything in it you can do any thing in it.

You want to get the code for transparent area of text. 

Here i am going to write a code for text area transparent effect, you have to put it simply before you table code.

The Transparent code is this.

This is for text Transparent.

<textarea style="background-color: transparent;">Transparent</textarea> 

And this is for button transparent effect.
<button style="background-color: transparent;">Transparent</button>

Thanks

Related Questions