Hi,
body
and p
are html tags, so styles created for those elements
automatically apply to those tags in the html generated by Freeway Pro. In
other words, you don’t have to “apply” them in the application.
That said, you will notice in the Style Editor window that when selected,
the names of those styles appear in the left-side “Tag” input box at the
top of the window. Most of the styles you make (and FWP auto-generates)
have their names appear on the right-side “Name” input. Fundamentally, this
is how Freeway Pro separates CSS style definitions for tag elements from
CSS style definitions for class elements.
Now, classes and tags are a whole topic in and of themselves. Let me just
address your present font concern, but I trust you will explore this
subject on your own later. http://www.w3schools.com/css/css_intro.asp
Freeway Pro let’s you set the font-family attribute on just about
everything. But smart use of CSS will allow you to set fonts in a far more
intelligent fashion.
Body Tag - An html page is made up of several code sections. The body
tag in html describes the section of the page we actually see in the
browser. When you set the font family on the body
element, you are
setting the font for pretty much everything that appears in the browser
window. Setting it to helvetica there sets everything on the page, unless
contradicted by a different style definition. It also has the benefit of
working automatically, without having to be “applied” to every instance of
text.
p Tag - The p
or “paragraph” tag only describes text that is not a
header, list, blockquote, etc. Most of us think of p
tag text as the text
part of a page. Setting the font family on this tag will affect all plain
text and does not need to be applied in the traditional sense either. It
will also over-ride any font-family setting from the body
tag.
Now, because CSS “cascades” or builds in stages - like a waterfall - you
can use the over-ride to your advantage. Styling the body
tag with one
font and the p
tag to another is a simple way to affect a whole lot of
code. This means header tags (h1
, h2
, etc.) can just focus on size. Or,
set the font on the body
tag and forget the p
tag… then setting font on
the headers will make sure only the headers are different.
I hope that sorts some things for you. But what happens when you style a
page with a font the end user doesn’t have?
CSS can be used to create “fallbacks” for just this case…
http://www.w3schools.com/cssref/pr_font_font-family.asp
In your example, the font set you’ve chosen starts with “arial” (similar to
helvetica, generally found on Windows machines) then if that isn’t found,
tries helvetica. If that’s not found either, it goes to whatever font the
user has set for “sans-serif” use. Something eventually gets used, there’s
no danger that your text won’t be readable - just not styled the way you
like.
You can edit Font Sets in Freeway Pro to control the order this process
follows, though if you want them to be available to all new documents you
must close all open FWP files first. I like helvetica too, so I made a set
in which it appears first - insuring that if users have it they will see my
work that way. If they don’t, then they are banished to the alternatives.
Sorry for the long post everyone - hope this is helpful and instructive.
–
Ernie Simpson
On Tue, Jan 22, 2013 at 12:13 PM, Wimdg email@hidden wrote:
Confused about styles! What do body and p exactly do and what are their
differences? What is the function of setting textstyle in documentsettings?
Do you use both p and body or do you set a p tag for the body style?
I changed my styles and my css menu now has the wrong typeface and
changing it in the inspector does not help. It looks like changing the body
typeface is the only way to change the typeface in my css menu. I thought
changing it through the inspector would overrule the body typeface; but
that does nothing. This css menu problem made me rethink about the p and
body style, and now I do not understand their exact behaviour in my
document.
I have chosen Helvetica and use it in my site with a 10, 11, 12 and 14
size. The latter I want to use in my css menu, and body is now set as 12px.
Besides that I have used h1 to h5.
I have two masters: on one of them I now have applied the body style and
it seems to me that this results in a css menu with helvetica 12 (as
defined in my body style), On the other master it looks like another
typeface in the css menu, but I do not understand where that one comes from!
I have also set a p style as helvetica 12; is this the one that defines my
css menu style?
See… I am confused, but I am sure there is someone out there who can
give me some guidance. For instance, what is the best way to set up a
stylesheet with Helvetica and the sizes I use?
Http://www.appadvies.nl
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