Freeway CSS property shuffle

I came across this oddity (bug?) with Freeway whilst editing text style links using the extended button and dialogue box entering the following 4 CSS properties:-

#middle a:link { color:#002a54; text-decoration:none; border-bottom:#AECF22; border-width:0px 0px 2px 0px; border-style:none none dotted none }
#middle a:visited { color:#002a54; text-decoration:none; border-bottom:#AECF22; border-width:0px 0px 2px 0px; border-style:none none dotted none ;color:#002a54;  }

If you go back to the extended button and open the extended box, to edit these properties, and press “OK” Freeway swaps round the order of these properties by one (even if you don’t edit anything but press “OK”)

So for example if you open the a:visited and open the extended box twice and press “OK” it shuffles the properties two positions as below.

#middle a:link { color:#002a54; text-decoration:none; border-bottom:#AECF22; border-width:0px 0px 2px 0px; border-style:none none dotted none }
#middle a:visited { border-width:0px 0px 2px 0px; border-style:none none dotted none ;color:#002a54; color:#002a54; text-decoration:none; border-bottom:#AECF22; }

Not a big deal you might think, but in this case it breaks this CSS link style. To fix it you need to open the extended box and press “OK” twice to shuffle round the order correctly “one at a time” to bring it back into the correct order make it work again.

Arrhhh…

Others might find this as a useful warning when CSS styles don’t seem to be working in Freeway.


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

Ordering of styles is one of Freeways Achilles heels
If you want to do this and guarntee the correct order then you need to fool Freeway into thinking its 1 style. Have a look at how it can be done via this tutorial

http://www.freewaytalk.net/thread/view/36221#m_36221

max


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

Thanks Max I’ll try that tip

And I never know about the CMD-SHIFT-N to create a new Freeway window of the same document.

10 out of 10!


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

Previewing a live version as well as adjusting the styles is a handy little advancement especially when adjusting styles… its not as good as cssEdit preview/adjust but not bad all the same… :o)

max


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

I recommend where possible to either use the Freeway UI to make your styles (there, it recognizes what you’re up to and orders the declarations in the LoVe HAte order – Link Visited Hover Active) or try to get by using just a declaration for the A tag and another for the hover. I usually do just that, leaving everything but hover as default from the a tag. That automatically gets you the correct ordering, since Freeway’s behavior is to alphabetize any user-made rules when generating the styles.

Walter


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