KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Overriding inline CSS
PRODUCT: 4D Web 2.0 Pack | VERSION: 12.1 | PLATFORM: Mac & Win
Published On: March 14, 2011

Inline style declarations in CSS, like this one:

<h1 style="color: blue;">Header</h1>

are not overridable by CSS styles in the external files or embedded in the HEAD section.

To apply external CSS to the inline styling, use "!important" suffix. This CSS code will override the header color mentioned above.

h1 {
color: red !important;
}