• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 33. Styling for HTML Elements > Style Sheet Property Names in JavaScrip...

Style Sheet Property Names in JavaScript

One fact Netscape 4, Netscape 6, and Internet Explorer all agree on is how they name their style sheet properties in JavaScript. You cannot have a property named text-indent. JavaScript would read that as text minus indent. Instead, the browsers follow a JavaScript tradition of capitalizing the first letter of every word, except the first word. For the text-indent CSS property, for instance, you would say textIndent.

Beyond this localized naming, however, things get very complex…


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint