I have an input textbox on my site, is there any way to make its background transparent?
Heres the current code:
<input type="text" id="srch" style="width:162px; border:0px; height:17px;" value="Enter name">
Cheers,
George

I have an input textbox on my site, is there any way to make its background transparent?
Heres the current code:
<input type="text" id="srch" style="width:162px; border:0px; height:17px;" value="Enter name">
Cheers,
George
Maybe try it with CSS
.input {
background: transparent
}
I KNOW NOTHING OF CSS but there is a way you can do it with CSS :L
good luck
Back for a while![]()
Here you goThis should work!
HTML Code:<style type="text/css"> .srch { background-color: transparent; width: 162px; border: 0px; height: 17px; } </style>HTML Code:<input type="text" id="srch" class="srch" value="Enter name">
Or if you don't want to add multiple sections of code in.. just add :
style="background:transparent;"
to your input tag.
As you've already started a style in your input tag it would be:
<input type="text" id="srch" style="width:162px; border:0px; height:17px;background:transparent;" value="Enter name">
Want to hide these adverts? Register an account for free!