How to Make a Bind in CSS
CSS classes lay out your HTML layout for Web pages on your site. You must "bind" an element to the CSS class, so the class takes effect when the user navigates to the page from a Web browser. CSS classes contain names you use in the HTML element's "class" property. All the colors and images defined in the CSS class display in the HTML element when the class property is defined.
Instructions
-
-
1
Right-click the HTML file you want to edit, and select "Open With," then click the HTML editor program to open the code.
-
2
Locate the HTML element on which you want to bind the CSS class. If the HTML element has a style defined in the "style" property, delete the "style" property from the tag.
-
-
3
Bind the CSS class to the HTML element. The following code is an example of an input text box bound to a class named "myclass":
<input type="text" class="myclass">
-
4
Save the changes and open the HTML page in a Web browser. Verify the class layout for the HTML element.
-
1