Thank you Tim for the great feedback!
You mention that the p tag will wrap most of the text on the page. Unfortunately styling the paragraph will leave things like headers and lists unstyled and displayed using the browser’s default values. To overcome this I tend to add a tag style for ‘body’ and set my default font, size, color in there. Now everything on the page will inherit these styles as all of the visual elements are children of the body. You could also add a style called #PageDiv which would have much the same effect as everything in a Freeway page is wrapped in a PageDiv wrapper.
Goodness, my brain must have died while I was writing the article (then again, I wrote it from 11:00PM to 1:00AM last night, which is never a good idea). I’ll have to make some changes and add directions for adding a ‘body’ style.
By using the cascading nature of styles you should only need to define unique styles once rather than having to repeat font, color or whatever for each element. The tricky part in all of this is explaining the hierarchical nature of styles and how a style can cascade down through objects to influence children and grandchildren. Maybe that’s another blog post?
I think I explained this, though in a very introductory manner, when I said that all of the other styles inherited the settings of the
p style (though this should have been
body instead). For me, personally, I learned the cascade best through trial and error – it’s difficult to explain in words, at least for me, but easy to understand once you’ve mucked around with it enough. I’ll see if I can elaborate on this some more in the “Tips and Tricks” section.
An extension of your post might include using styles on objects. I know you mention applying type styles to containers but you can also style HTML elements using styles like background colors and images in the character section of the Edit Styles dialog. Sadly you won’t see the item in the design view update but it’s a great way to create item styles that you can easily add to numerous elements very quickly.
Good idea, though I think this is a topic that is better left for another day. This blog post is meant to be an entry-level introduction to the practice of using proper styles for text, so I’ve been trying hard to avoid information overload, and instead give the readers just enough information so know how to work with it and experiment. However, I might also add this to the “Tips and tricks”.
freewaytalk mailing list
Update your subscriptions at: