Changing text selection colour

Any ideas how to implement this easily in Freeway? Not sure where to put the selector code…

Help appreciated as always.

Cheers

Stephen


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

Have a look at http://www.deltadesign.co/FW6Test/twitterwidget.html

This page uses the following code added in Page>Html Markup in the Before section

<style type="text/css">
::selection {
  background: #FF0099;
  color: black;
  text-shadow: none;
}

::-moz-selection {
  background: #FF0099;
  color: black;
  text-shadow: none;
}
</style>

Obviously you would change the colour from #FF0099 to your own choice.

You can create a style in FW and add it that way but this way is probably easier.

David


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

And just to add to this

Browser support:

The ::selection selector is supported in IE9+, Opera, Google Chrome and Safari.

Firefox supports this using the alternative ::-moz-selection. (Hence the extra code in there)

So dont expect your older IE version users to see it.

D


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

Hi Dave

Thanks for this. Ideal!


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

I wrote an Action to do this last year. I’ll dig it out and post it online later.
Regards,
Tim.

FreewayStyle.com - Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

It turns out I wrote this back in 2011! Anyway here are the Actions for both Express and Pro (version 5, 5.5 and 6). The single download will contain three Actions allowing you to apply the selection colour to an item (a text box or table maybe), a page or an entire folder of pages.
http://actionsforge.com/actions/view/300-text-selection-color
Regards,
Tim.

On 19 Apr 2013, at 19:28, Tim Plumb wrote:

I wrote an Action to do this last year. I’ll dig it out and post it online later.


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com


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