redarrow Posted February 28, 2008 Share Posted February 28, 2008 using inline css how can i make also the letters have the color red thank you..... <input type="submit" name="submit" value="LET ME IN!" style=" background-color:gray"> Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/ Share on other sites More sharing options...
AndyB Posted February 28, 2008 Share Posted February 28, 2008 style=" background-color:gray; color:#c00;" Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479178 Share on other sites More sharing options...
redarrow Posted February 28, 2008 Author Share Posted February 28, 2008 what wrong with this one please....... <input type="checkbox" name="remember_me" style=" background-color:gray; "> Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479191 Share on other sites More sharing options...
haku Posted February 28, 2008 Share Posted February 28, 2008 Nothing wrong with it, it will work fine. But if you want to have red text, you need to add color:#c00; But you really shouldn't use inline CSS. Its bad practice. It should at least be in the head, and preferably in an external file. Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479195 Share on other sites More sharing options...
redarrow Posted February 28, 2008 Author Share Posted February 28, 2008 i no all thet but it dosent work that why i am asking mate.. Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479198 Share on other sites More sharing options...
redarrow Posted February 28, 2008 Author Share Posted February 28, 2008 here the full code as your see the cheekbot background color not working wonder why.. <html> <head> <title>test form</title> </head> <body bgcolor="black" alink="blue" vlink="blue"> <form method="POST" action="login.php"> <font color="blue">Please Enter Username:</font> <p></p> <input type="text" name="username" style="background-color:gray"> <p></p> <font color="blue">Please Enter Password:</font> <p></p> <input type="password" name="password" style="background-color:gray"> <p></p> <font color="red">123456</font> <p></p> <font color="blue">Please Enter Security Number:</font> <p></p> <p></p> <input type="text" name="S_number" style="background-color:gray"> <p></p> <input type="submit" name="submit" value="LET ME IN!" style=" background-color:gray; color:#ff0000;"> <p></p> <font color="red"><a href="forgot_password.php" STYLE="text-decoration: none"> Forgot Password</a></font> <font color="blue"> Remember Me</font> <input type="checkbox" name="remember_me" style="background-color:#0000FF;"> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479207 Share on other sites More sharing options...
AndyB Posted February 28, 2008 Share Posted February 28, 2008 Form controls are not very amenable to styling, since the browser tends to override and CSS settings. Cross-browser performance is patchy. View this: http://www.456bereastreet.com/lab/styling-form-controls-revisited/checkbox/ Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479218 Share on other sites More sharing options...
redarrow Posted February 28, 2008 Author Share Posted February 28, 2008 this is all inline now but the background-color for rcheckbox not working why? have i missed a property somewhere in css.. <html> <head> <title>test form</title> </head> <body bgcolor="black"> <form method="POST" action="login.php"> <div style="color: blue;">Please Enter Username:</div> <p></p> <input type="text" name="username" style="background-color:gray"> <p></p> <div style="color: blue;">Please Enter Password:</div> <p></p> <input type="password" name="password" style="background-color:gray"> <p></p> <div style="color: blue;">123456</div> <p></p> <div style="color: blue;">Please Enter Security Number:</div> <p></p> <p></p> <input type="text" name="S_number" style="background-color:gray"> <p></p> <input type="submit" name="submit" value="LET ME IN!" style=" background-color:gray; color:#ff0000;"> <p></p> <font color="red"><a href="forgot_password.php" STYLE="text-decoration: none"> Forgot Password</a></font> <font color="blue">Remember Me</font> <input type="checkbox" name="remember_me" style="background-color:gray; border-color: gray; color:gray;"> </form> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479230 Share on other sites More sharing options...
redarrow Posted February 28, 2008 Author Share Posted February 28, 2008 Advance thank you all.... SOLVED ok mate cheers, I see the problam yee so ill have to leave it as defualt no choice at all... thank you for your help.. Quote Link to comment https://forums.phpfreaks.com/topic/93526-submit-button-inline-css/#findComment-479233 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.