I'm trying to make a custom TextBox (input) with a different font and transparent background, I found two posts on how to edit input font family and making backgrounds transparent.
Is background-color:none valid CSS? Why doesn't <input> inherit the font from body?
But I'm trying
HTML:
<div id='test' class='menuInput' style='background-color:blue;' onClick='alert("Test");'><input type="text"></div>
CSS:
input,.menuInput{
margin-top:10px;
text-align:center;
font-size:35px;
margin:0px auto;
font-family:FixedSys;
padding-bottom:6px;
height:35px;
border:2px solid black;
width:400px;
background-color:transparent;
color:white;
margin-bottom:15px;
}
But its not working? the background color is still white and the font family hasn't changed either
EDIT: Thanks for the answers, but it still isn't working? I've tried
.menuInput input[type="text"]{
margin-top:10px;
text-align:center;
font-size:35px;
margin:0px auto;
font-family:FixedSys;
padding-bottom:6px;
height:35px;
border:2px solid black;
width:400px;
background-color:green;
color:white;
margin-bottom:15px;
}
and its still not working?
I'm sure I have that font since I'm using it for something else!