October 2006
Intermediate to advanced
288 pages
5h 55m
English
In order to stylize our component, we will create a CSS (Cascading Style Sheets) file called tree.css. This file will contain element ids and classes that we created in the tree object when we created the HTML string that was added to the current document. This file is simple and can be customized to look the way you would like, including link colors, spacing, and so on. Listing 11.17 shows this entire file.
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; } .container { color: #333333; font-weight: bold; line-height: 21px; text-decoration: none; } ul { margin: 2px 0px 5px 20px; list-style-type: none; padding: 0px; } li { padding: 2px 0px ... |
Read now
Unlock full access