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?
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?
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.
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.