Getting text to justify in a WebYep text box

I have a list of products in a WY long text, each with a price. Is it possible to get the products to range left and the prices to line up on the right hand side, similar to below?

Product 1…£10.00

Product 2…£18.00

But without the points.


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

If you create a span class and add some extended CSS to it, you could do this. You would highlight the price portion of the text and apply your custom .floatRight style to it, and the price would appear at the right. Here’s what I would do:

First, create a new style. Set something innocuous at the Character level – Case: Default would be a good “useless” thing to add here. Then open the Extended dialog and add three new properties:

Name Value
float right
display block
margin-left 12px

That should get you a nice price block. You may need to change the order of the elements in Freeway – price before product name – in order to have the tops of the price and name lines aligned properly. (Generally speaking, anything that is to be floated right should be first in source order.)

Walter

On Aug 5, 2013, at 9:03 AM, Kryten wrote:

I have a list of products in a WY long text, each with a price. Is it possible to get the products to range left and the prices to line up on the right hand side, similar to below?

Product 1…£10.00

Product 2…£18.00

But without the points.


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


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

Thanks Walt, I will try this and presumably get completely stuck, but you never know…
Thank you very much - I’ll be back, as they say.


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

Walt, I should have stated WY Rich text box not Long text. Does that change anything as I haven’t been able to get Rich text to display any external style sheets for some time using TinyMCE or RTE, and presumably this is essential.


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

Well, that would put the kibosh on this. I was hoping you could create a style that you could access from the little inline editor widget. I haven’t used the WY editor in a while, I thought that the TinyMCE editor had that little picking list of styles in there somewhere.

Walter

On Aug 5, 2013, at 4:40 PM, Kryten wrote:

Walt, I should have stated WY Rich text box not Long text. Does that change anything as I haven’t been able to get Rich text to display any external style sheets for some time using TinyMCE or RTE, and presumably this is essential.


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


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

I’ll convert it to Long text Walt, and as you say style it from there. Thanks very much.


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