Log in

View Full Version : Lil help please



MrPinkPanther
07-04-2009, 04:14 PM
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

Fehm
07-04-2009, 05:49 PM
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

Johno
07-04-2009, 10:01 PM
Here you go :) This should work!



<style type="text/css">
.srch {
background-color: transparent;
width: 162px;
border: 0px;
height: 17px;
}
</style>



<input type="text" id="srch" class="srch" value="Enter name">

l3etrayed
08-04-2009, 09:58 AM
Here you go :) This should work!



<style type="text/css">
.srch {
background-color: transparent;
width: 162px;
border: 0px;
height: 17px;
}
</style>

<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!