How do you get Space Before to work in a Table?

I need about 8px before and it ain’t happenin’

Cheers!

Kryten


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

Sorry - forgot to say ‘please’ - how rude.

K.


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

Check if there a style already applied to the table, or table cell (check in the Inspector palette > Style - FreewayPro), that might be interfering with your setting?

On 26 Nov 2007, at 14:53, Kryten wrote:

I need about 8px before and it ain’t happenin’

David Owen
Printline Advertising ::
Freeway Friendly Web hosting and Domains ::
http://www.printlineadvertising.co.uk/freeway/

On Nov 26, 2007, at 9:54 AM, Kryten wrote:

Sorry - forgot to say ‘please’ - how rude.

K.

It doesn’t seem possible to add in the usual way. The margin on the
paragraph is getting eaten by the containing TD, and I’m not sure
why. If you manually extend the paragraph style by removing the Space
Before or Space After settings, and then press Extended and add these
back in as Padding properties:

padding: 12px 0 8px 0

…it will work as expected. But it won’t be WYSIWYG in Freeway any
more, so you will have to check in the preview mode whether things
look the way you intend.

Another way to approach this visual effect is to apply padding to the
TD, although that won’t apply to any except the first or last paragraph.

Walter


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

Thanks David & Walt. I’ll try the extended way.

K.


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

Yep - that did the trick thanks Walt.


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

On Nov 26, 2007, at 1:24 PM, Kryten wrote:

Yep - that did the trick thanks Walt.

Now I’m hoping that Ernie pipes up with the reason why it’s happening
in the first place.

Walter


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

On Nov 26, 2007, at 1:51 PM, Walter Lee Davis wrote:

On Nov 26, 2007, at 1:24 PM, Kryten wrote:

Yep - that did the trick thanks Walt.

Now I’m hoping that Ernie pipes up with the reason why it’s happening
in the first place.

Walter

Actually, I just looked at my test page in Xyle scope, and it’s
pretty clear what’s happening. By default, Freeway publishes a little
extra style into every page:

 p:first-child { margin-top: 0px }

Also by default, when you create a new named style, it’s going to be
an empty “class” style, like this:

 .style1 { margin-top: 30px }

If you apply this class to a paragraph, Xyle reports that the
resulting rule has a weight of 10, while the p:last-child has a
weight of 11 (file under “Spinal Tap and CSS”, I suppose). It appears
as though this is because the latter includes the tag name in the
style definition, while the former does not.

Simple fix: Add the tag name to your rule. The result will be a style
rule that looks like this:

 p.style1 { margin-top: 30px }

Edit the style you created using the Space Before control. Change the
Tag field at the top of the dialog to read “p” instead of nothing
(it’s one of the options in the pull-down menu), and save your style.
Space Before suddenly works.

However, now you can only add this rule to paragraphs. No other tag
will accept it as a style. If you want something similar to work on
h2 tags, you would need to make a different tag style with the same
class name (which kind of defeats the purpose of the entire css
cascade business).

Walter


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

Absolutely brilliant Walt. Thanks. I’m off to try it now.

K.


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

Outstanding reasoning Holmes. Works perfectly. I only wish I understood it.

Cheers! Walt.

Kryten


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