Okay, I accept that. This has been one of my pet peeves with Freeway Pro
for a long time. Obviously, the code FWP generates, without any massaging,
is technically valid. It’s just not pretty.
However, I still don’t understand how you were able to clean up the FWP
code…
Okay, maybe I need to make sure that I am crystal clear here. I DO NOT
massage the code FWP produces after it is produced… how I use FWP
determines how FWP writes the code. Granted, the ability to prettify or
minify the code is part of the application and it follows it’s own rules
for that. If I had my way, every colon in the CSS code would be followed by
a space and every style rule would end with a semicolon - but that’s just
me.
Remember, everything you do in FWP is interpreted by FWP and rendered into
code. Draw a box with the Layout button set to Layers and you get a div.
Draw the same thing with the Layout button set to Tables and you get a
table. There you are, controlling what FWP does.
Part of the battle is understanding the relationship between your actions
and how FWP interprets them. The other part is knowing what it is you want
to produce specifically. You must have an idea of what you want to produce
code-wise before you can attempt to make Freeway Pro do your bidding in
that regard.
For example, I like unordered lists, but I rarely want them to have
bullets. If you make a list style in FWP and choose round bullets, FWP will
make your list an unordered one. But if you choose no bullets, FWP will
make your list as a definition list (a malformed one at that). So what I do
is make a round bullet list style, then in the Extended option create the
rule
list-style: none
padding-left:0
Boom. I just tricked FWP into writing an unordered list with no bullets or
spacing for them. Using the Extended option in most cases will let you
“rewrite” the style code that FWP would normally produce - you just need to
know what that normal code is.
Another thing that makes my code nicer is that I try to find the simplest
way to apply styles. For example, it is inherent that all noobs style all
their text with classes, so that every single paragraph of ordinary body
text looks like this:
<p class="styleXYZ">Blah blah blah ad infinitum</p>
<p class="styleXYZ">They do the same thing with headers as well</p>
<p class="styleXYZ">Do you get what is wrong with this picture yet?</p>
HTML already gives us a p tag for common text, and h(n) tags for headers.
Instead of bloating the page with unnecessary class styles, why not focus
on what is already there. So taking advantage of existing structure results
in cleaner, more easily viewable code. Likewise, CSS is incredibly flexible
that a little creative thinking will allow you to do the same thing in a
different way, giving you more options than simply mashing classes into
everything.
It also helped me as a designer to try and not micromanage (!) the design
so much - choosing to have fewer levels of complexity to increase the
fluidity of the construction. I admit it was hard to let go of the idea
that design was something for me to steer and control - when really I was
more like a passenger on something that changes and reacts to things I
cannot control. Planning for small shifts (and sometimes big ones) while
still looking fabulous is a tough job, and I would argue it’s the least
tough thing about web design.
And how did you introduce your own custom written css (devices.css) into a
FWP document? Is that another action?
There are actions for that, but it is the simplest thing to do it yourself.
You know the custom css file must be uploaded, so I might use the good old
Upload Stuff by Tim Plumb to automate this… the alternative is to do it
manually every time. Then I just write a snippet of code in the Page > HTML
Markup section before the /head section.
Todd, thanks for the acknowledgement. I think the secret is actually caring
about the code that is produced and my stubborn Scot ancestry
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options