"p" cannot be applied to text

I thought the “p” was “paragraph” but when I highlight some text and hit the “p” I get "this style cannot be applied to text - is this correct please. Best Roger


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

The “p” tag is specific to paragraph format settings. So things like leading can be put in there but not like fonts and such. That’s what the “body” tag is for as it is in charge of handling all of your default fonts, font-sizes, font-colors, etc.

I just did a video screencast on it and it’s posted in the forum here:

http://freewaytalk.net/thread/view/38751

Good luck, Roger.


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

I checked out your video, Dan. Brilliant! As you say, it’s the way the pros do it and it’s as elegant a way to set up default styling as any page make up program that I can think of.

I recommend it to anybody using CSS and serious about producing functional, standards-compliant sites.


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

Hi Roger,

All HTML text will be contained in a p tag so you can think of it as
being applied to the text already. Dan mentioned the body tag as an
option for applying font formatting and things, this is also possible
and again, once created, you don’t need to apply it to anything
because body tag encloses all the content in the design area of your
page, like this:

<body>
	<p>Some text</p>
	<p>Some other text</p>
</body>

Making a body tag style and adding formatting to that is the same as
making a style and applying it to the page.

Hope this helps.

Joe

On 29 Aug 2008, at 08:46, Dan J wrote:

The “p” tag is specific to paragraph format settings. So things
like leading can be put in there but not like fonts and such.
That’s what the “body” tag is for as it is in charge of handling all
of your default fonts, font-sizes, font-colors, etc.

I just did a video screencast on it and it’s posted in the forum here:

http://freewaytalk.net/thread/view/38751

Good luck, Roger.


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


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

On 29 Aug 2008, at 08:11, Roger Burton wrote:

I thought the “p” was “paragraph” but when I highlight some text and
hit the “p” I get "this style cannot be applied to text - is this
correct please. Best Roger

Heh, try selecting a box but don’t click in it, then choose ‘p’ and
you’ll get the equally helpful message: ‘this style can only be
applied to text’. I too would like to know about this …

best wishes,

Paul Bradforth

http://www.paulbradforth.com


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

Sometime around 29/8/08 (at 03:46 -0400) Dan J said:

The “p” tag is specific to paragraph format settings. So things
like leading can be put in there but not like fonts and such.
That’s what the “body” tag is for

Actually, you can put font and similar styling into the P tag
style. That tag is wrapped around all regular text (not header-tagged
text or lists), and it is quite normal to style things in this way.

Use the P tag for default font styling, or use the body tag (you’l
need to add this yourself) for default font styling. There are some
differences in behaviour detail, but either is absolutely fine.

k


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

Sometime around 29/8/08 (at 09:21 +0100) Paul Bradforth said:

you’ll get the equally helpful message: ‘this style can only be
applied to text’. I too would like to know about this Š

Seems like the messages may need to be rethought.

But the fact is that that’s a tag-specific style,
something that is automatically ‘applied’ to
whatever will be wrapped in that tag in the final
HTML code. You don’t need to apply it to make it
work, you just set it up to contain the settings
you want (font, colour, leading, alignment, etc.)
and it automatically works.

k


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

Yes paul, I noticed this as well, it does make for a little confusion for a newbie like me but luckily there are loads of clever chaps like you to point me in the right direction, and Joe, yes, I understand a little more now, I came across that “page style” tip in the reference (page 226 if anyone’s interested) and Dan, thanks for an excellent screen cast yet again a question though, am I safe to apply this body tag to my existing sites (ie retrospectively to tidy things up) or is there a danger that I will screw things up. Best regards Roger


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

Well it depends on the site on how long you’re dedicated to correcting what happens to it. By creating the “body” tag (which occurs more often then “p” tag applied attributes) you can remove any fonts that use that same font, but it gets tricky when it comes down to font-size and / or color.

This step is usually the first thing I do when I make a site, before i lay down any grids or anything else really, and then it sets the pace for the project and the way in which my styles are made.

In the long run it’s still okay to have other styles and such. The point of the screen-cast was to show a shortcut to saving you time in creating those extra style attributes. It’s intent was to publish cleaner code and more of what can be done using CSS in Freeway.


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

Sometime around 29/8/08 (at 04:44 -0400) Roger Burton said:

am I safe to apply this body tag to my existing sites (ie
retrospectively to tidy things up) or is there a danger that I will
screw things up.

All that putting styles into the body OR the p tag will do is tell
the browser what styles to use by default, if specific styles aren’t
specified. They won’t override anything that you’ve styled up
directly.

If you draw out an HTML box and type into it, that text will be set
in Times new Roman at the browser default size. If you add a font
style to the body OR the p tag, that will tell the browser (and
Freeway, incidentally) to show it using the specified typeface -
without you needing to go style that text manually.

This is a good way to set up a base type style for a site. From
there, you can just go add manual overrides to specific bits of text
as you like.

Doing this in the p tag style will affect all text that’s wrapped
within the

and

tags, which is all regular text, as I’ve
mentioned before. It won’t affect anything else, which may or may not
be what’s wanted.

Doing this in the body tag style will affect ALL text, including H1,
H2, etc., lists, and so on.

It will also affect the text labels on some form elements. Although
to style the text that goes inside a form field or in a button you’ll
need to create and set up an “input” style, and button label text
doesn’t seem to want to change font. AND Freeway doesn’t show style
changes to form elements within the design view.

k


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

Sometime around 29/8/08 (at 05:26 -0400) Dan J said:

This step is usually the first thing I do when I make a site, before
i lay down any grids or anything else really, and then it sets the
pace for the project and the way in which my styles are made.

Yes, that’s a pretty good way of working - well worth presenting as a
‘good practice’ approach.

I apologise if I seemed to come in with hobnail boots on, but I
really just wanted to make it clear that there is absolutely no
reason, technical or otherwise, why someone can’t put font styles and
others in the p tag style.

k


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

Users should be aware that changing the body tag after designing a site, will also effect any gif/graphic text you might have. So you need other styles even for graphic text to override the styles your put in your body tag for instance. So check all the site.

Many users might assume we’re only talking about HTML text here.

On 29 Aug 2008, at 10:43, Keith Martin wrote:

Doing this in the body tag style will affect ALL text, including H1,

H2, etc., lists, and so on.

David Owen

http://www.ineedwebhosting.co.uk

Sometime around 29/8/08 (at 17:38 +0100) David Owen said:

Users should be aware that changing the body tag after designing a
site, will also effect any gif/graphic text you might have.

Good point. Something in the body tag style will affect (virtually)
all text in the Freeway page, which includes graphic text.

It won’t override the font that’s set, unless you didn’t set that.
What it will affect is any style options that have NOT already been
set. So if you set font colour to red in your body tag style but have
left a graphic text item at the default (rather than specifically
saying black), then your graphic text will change colour along with
the rest of your text.

Using the p tag style won’t do this, but it leaves other items
(headers and lists for example) unstyled as well.

Thanks David, a very good catch!

k


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

I think chiming in helps the situation for new concepts for people. So either the p tag or the body tag work out and they’re both viewable (and their effects) in Freeway’s working window so that’s the great side.

I’d see using the body tag option as a mode of practice towards new projects. It’s more of a workflow issue rather than a must for everyone to do on their old projects.

Thanks for everyone chiming in.


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

Sometime around 29/8/08 (at 16:32 -0400) Dan J said:

I’d see using the body tag option as a mode of practice towards new
projects. It’s more of a workflow issue rather than a must for
everyone to do on their old projects.

That’s a perfect summary - thanks Dan. :slight_smile:

k


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

Thanks as ever to all the contributors, it’s certainly clarified it for me. Have good weekends Roger


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