I want them all Inline styles...

This is to anyone who knows…
As I am sure most of you know Freeway uses a combination of inline styles and a style sheet and this can be within the html doc or as an external .ccs sheet
does any one have quick work around to make it ALL inline as per this

  <td><h2 style="color:#313031; font-family:Helvetica,sans-serif,Arial; font-weight:bold; font-size:18px; line-height:19px; margin-left:3px; margin-top:2px; margin-bottom:0.1px;"><img src="http://www.servondesign.co.uk/newsletters/oct08/Resources/christmas_present.jpg" alt="Christmas Present" style="margin: 0px 4px 18px 18px; float: right;" border="0" height="155" width="140"/>Call it an early Christmas present...</h2></td>

Without resorting to using extended attributes… The only reason I ask is it’s slow and the possibility of making mistakes is a very real problem as its all done by hand
and making my document a 3.2 doc is not practical as it incurs way to may limitations.

cheers max


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

Hmmm. This is a real puzzler. I know there have been calls for the opposite, but I’ve not heard of any requests for this sort of construction.

It should be possible in an Action, but if you don’t mind me asking, what’s your end-use scenario?

Thanks,

Walter


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

Also, let me temper my initial enthusiasm a tiny bit here… It should be possible for an Action to grab any associated style definition from the HEAD of the page and merge it with whatever inline style tag is written into the item it’s applied to, but if that style is written in an external stylesheet, then sorry, Actions don’t have access to those styles at the present time.

So if you had turned external stylesheets off, it should be possible in theory to extend individual objects as you describe.

Walter


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

Hi Walt

I know it’s an odd one and a bit back to front especially as I have been calling for the opposite too.
The scenario is emailers:
For example if I want to place a background on a cell or if I want a background image on a whole table, then I can only get this to work consistently in old school html extended attribute styling which is inline.
Quite a bit of what I do is slow going and I have to do it by it by hand with extended attributes.

Most of the time we find its ok to have the style sheet within the body but on certain items it really needs to go in as an inline.
The other problems I have is every time I publish I need to:

  1. move the styles above the head into the body then
  2. remove the unnecessary metatags
  3. remove the div top and bottom and if I am centering I add the align=center to the containing table.
  4. Add blank spacing within the head, tables etc which my spam checker insists on requiring (lower spam rating)
  5. adjust the
    “Content-Type” content="text/html;
    to add in the quote marks around content_type cos it doesn’t have them when I use 4.1 transitional and again my bulk emailing software what’s them in (for the spam check score to be as low as possible).

Finally I do a test, but if need to adjust, the next time I publish… bang all that final hand stuff goes out the window.
So it would be nice if at the very least I could move the style from the head into the body and even better if I could move some of those style as inlines.

It would be great to know how every one else does it.
cheers max


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

Aha. I thought it might be something like that. It’s simple enough to
grab all the styles out of the head and move them into the body using
an Action. (Such an action doesn’t exist yet, but I’m just saying it
wouldn’t be hard to make one.)

To move all the styles from within the head to completely inline
styles would be more involved, but probably still within the real of
what an Action can do. So if you had something like this:

 <div class="foo" id="bar" style="...">
     <p class="baz">Blah blah blah.</p>
 </div>

Then an action could first loop through the page, grab any existing
inline styles and store them as an object. Do the same for any styles
in the head, then resolve class or ID referenced style information
back to the individual objects. So if .foo was defined as:

 .foo { color:#ccc; font-weight:bold }

Then when the action got to your div.foo, it would merge the style
properties that are already inline with the styles defined in class foo.

Where I imagine this could get messy is with background styles,
though. Freeway doesn’t write background styles (or any style, for
that matter) out long-hand; using a separate property for each
variable: background-image, background-position, background-color,
etc. So if you had a class or id-based style in the head which had a
background: property defined, and another background property on
the inline object, you’d probably get inconsistent results. The same
would hold true for fonts.

Walter

On Nov 6, 2008, at 2:16 AM, max wrote:

Hi Walt

I know it’s an odd one and a bit back to front especially as I have
been calling for the opposite too.
The scenario is emailers:
For example if I want to place a background on a cell or if I want
a background image on a whole table, then I can only get this to
work consistently in old school html extended attribute styling
which is inline.


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