O'Reilly logo

Mastering NetBeans by David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CSS preprocessors

When developing web applications, we typically style applications using CSS. It gives us advantages when developing HTML in that the style of our applications is kept separate from the markup for a page, thus allowing us to easily change the styling of an application without modification to the page itself.

Unfortunately, CSS is a fairly simple rudimentary language and can, for example, lead us to the duplication of definitions. Consider the case where we wish to declare several classes with the same color font:

.main_text {
  color: #ff0000;
}

.sidebar_text {
  color: #ff0000;
}

In these two classes, we've had to duplicate the color value (#ff0000) twice. If we wanted to change this to, say, #0000ff, we'd need to change it in multiple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required