Align HTML Markup item right in CSS box

It’s getting late on this side of the world and clearly I’m missing something obvious, but I can’t find it.

I have a markup element (google custom search code) in its own html item (layer) on the right hand side of the page. I want to right-align the markup element within its parent, so as to have the form hard right, but can’t work out how to do so. I’ve tried align=“right” and text-align=“right” as extensions but nothing seems to work.

Please tell me I’m missing something obvious!

Thanks
David


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

Try float:right; width:250px; on the search item. And if you are putting a DIV into the page using a Markup Item, make sure that you are not placing that MI inline within a run of text. If you do, you will end up with tag soup:

<p>
    <div>Your stuff here</div>
</p>

That’s not valid, and it begs a browser to decide what to do with it, rather than being clear about its intentions.

The CrowBar Action is here for that purpose, if you don’t have it, go to ActionsForge and get a copy.

CrowBar is my attempt to make a Markup Item that “gets it”. When it’s the only thing in a line of text, it completely replaces that line of text, enclosing tag and all. When it’s the first or last thing on a line of text, it moves outside of that line’s enclosing tag, either before or after it depending on position. And then of course you can apply the Action to an HTML box, and add code either before or after the contents of the box.

Walter


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