User Interface Designer Question: Download UI Designer PDF

Suppose If background and colour should always be set together, why do they exist as separate properties?

Tweet Share WhatsApp

Answer:

The reasons for this are as follows:
- It increases the legibility of the style sheets. The background property is a complex property in CSS. If it is combined with color, the complexity will further increase.
- Color is inherited, but background isn’t. This can further increase the confusion.

Download UI Designer PDF Read All 29 UI Designer Questions
Previous QuestionNext Question
Do you know which style specification method should be used?Please distinguish between Static vs. Dynamic HTML?