Skip to main content

Dynamically Modifying Style and Cascading Style Sheets

  • Chapter
  • 343 Accesses

Abstract

In Chapter 1, I stressed the importance of separating your markup, behavior, and presentation. The problem with separating everything is that many aspects of the three layers overlap or even collide in an explosion messed-up code. You’ve already seen how to manipulate the DOM document structure in Chapter 3 and the behavioral event listeners in Chapter 4. Now it’s time to discuss the presentation layer and how you can write scripts to modify your presentation. We’ll explore ways to modify the presentation without embedding it in the script itself, though sometimes doing so will be unavoidable.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Jeffrey Sambells Aaron Gustafson

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Jeffrey Sambells, Aaron Gustafson

About this chapter

Cite this chapter

(2007). Dynamically Modifying Style and Cascading Style Sheets. In: Sambells, J., Gustafson, A. (eds) AdvancED DOM Scripting. Apress. https://doi.org/10.1007/978-1-4302-0298-1_5

Download citation

Publish with us

Policies and ethics