In addition to using style sheet files to enhance the design of
your JSP files, you can also code style definitions within your JSP files.
Double-click the JSP file to open it in the editor view.
Click the Source tab to display the source for the JSP file.
Add the following tags between the <HEAD> and </HEAD> tags
in the file:
<style type="text/css">
</style>
If the JSP file contains links to style
sheet files, add the style tags after these link tags. In this way, the style
definitions that you include take precedence over style definitions in the
style sheet files for the same element.
For example, if you want to change the color of the H1 heading
tag in your JSP file:
Copy the style definition for the H1 from the
Master.css file. The content within the style tags is now like this:
You can now change the color definition for the H1 tag.
(You can change the other style definitions for the H1, or
add new definitions.) If you change the color to green, your
style definition appears as: