"This style cannot be applied to text"

Hi , I’m still struggling with the basics so it seems …

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 am I missing here?

( Did not find anything in the FRW-Reference. )

/ O K N


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 19 Oct 2008, at 15:29, OmarKN wrote:

Hi , I’m still struggling with the basics so it seems …

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.

best wishes,

Paul Bradforth

http://www.paulbradforth.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.”

Strange, isn’t it?

BW; O K N


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - solved!

Thanks to Paul and Walter!

What’s the style you’re trying to apply? Some styles …

This made me think … :slight_smile:

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”.

… I’m still rather untrained with FRW.

BW, O K N


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options