Some styles are not meant to be applied. They simply change the basics of the tag they apply to wherever that tag occurs. For example, the P tag is never applied to any text, yet all text that is enclosed in a paragraph tag is affected by whatever changes you might make to that style. This is part of the basics of how CSS works.
When creating a HTML-item with selecting the text in it, I want to apply a predefined style to it, (by clicking on this style in the Style Editor), but all I get is “This style cannot be applied to text”.
What’s the style you’re trying to apply? Some styles are best applied to the DIV containing the text.
Well, let’s say I create a new DIV (HTML-item) with some text in it. I select all of the textm because I want to apply a predefined style, f ex styleB { Trebuchet MS; 12px; color … }.
To do this I click in the Style Inspector where my “styleB” is listed and I thought in my mind this would do the trick …
… i.e. to aplly this style to my text in the new DIV, but no, there comes the message: “This style cannot be applied to text.”
What’s the style you’re trying to apply? Some styles …
This made me think …
The mistake I was doing was that I had entered a non-generic term into the tag field, but the correct way is - I suppose - to use a generic tag (such as p, h1 …) and then define an attribute to it in the “Name-field”.