Everything looks right. Make sure you bind your stylesheet between your headers, or if you choose the inline tagβs route, they should also be between the head.
<html> <head> <link href="StyleSheet.css" type="text/css" rel="stylesheet" /> </head> <body>....
OR
<html> <head> <style type="text/css"> .textbox { background-color: #F7FCFF; } </style> </head>....
Remember that HTML does not have a TextBox control, so if it does not give you a property (e.g. asp.net), you should have this CssClass that you used. Also, if you use the format in your example, as a comparison, this is your problem. See my second block of code where the style should be.
Hope that helps
Tony
source share