I have added some mark up HTML to my Freeway Pro page and I want to centre the item on my page within the HTML box. The mark up is for a Flash mp3 player, I want it centred on my layout - is there a way to do this as I already tried simply centering the mark up symbol that appears in your HTML box thinking this would work, but it didn’t?
Your markup may be setting its own alignment, or it may be resulting in invalid code. Either of these could cause the results you are seeing. Could you post a link to the page?
Yes, as I suspected, you have inserted a DIV inline within a P tag. A
DIV cannot be contained by a P, so this is invalid and it’s not going
to work for you. Since you are using the Markup Item at the moment to
get your code into your table cells, try this.
Use CrowBar (from ActionsForge) in place of each Markup Item. Put the
same code you would have put in the MU inside CrowBar’s Code window,
and don’t bother trying to center the line of text, just empty out the
other text and spaces and click Remove Style for good measure.
Make one tiny addition to your code as you paste it in – add a
classname to the DIV. So where you have <div id="flashplayerN">,
make that something like <div id="flashplayerN" class="flashplayer">.
Now make a new style with ‘.flashplayer’ in the Tag field (note the
leading dot – it’s important) and nothing at all in the Name field.
Click on Extended in the Edit Style dialog and make a new Name/Value
pair of margin/auto. You should see this:
name
value
margin
auto
Now you don’t have to apply this style to anything, Freeway will just
publish it because it is a Tag-only style.
And now anything with the classname flashplayer will magically center
within its container.
Walter
Now you can create a
On Dec 13, 2008, at 1:06 PM, lfcredbird7 wrote:
Aha. You need to add a width property to the .flashplayer style
definition, and then it works fine. Try 75px, that seems to work here.
In Freeway, Control-click on the word .flashplayer in the Styles
palette list, and choose Edit Style from the contextual menu. Click on
the Extended button, and add a new Name/Value pair of width/75px
Save and publish again, and you should see the players centered in the
table cells.
Walter
On Dec 14, 2008, at 5:22 PM, lfcredbird7 wrote:
hi walter,
i downloaded the CrowBar action and followed your instructions, but
it still seems to be aligning left?