align text right snug fit recipe?

  • This textfield is alighed upper right and contains an unknown length variable string.. So the entire textfield is a fixed with 800px.. What I'm trying to do is have the text aligned right.

    No sweat.. however! My leftmost a link hover is activated when the mouse is over any part of the left side of the plugin.. hundreds of pixels away from the actual text.
    So you see I've hacked around it by adding a dummy period that's made as small as possible. But is there a normal recipe? I've spent hours getting no where with display none; autosize, wordwrap and various bits of code to deal with getting some autosized width until just now.


    html=
    p align="right"][span class="testhidden"].[/span][a href="event:show_gallery()"]Photos[/a] - [a href="event:showshare()"]Share[/a] - [a href="event:showcontactus()"]Contact Us[/a] - [a href="event:openurl(http://www.domain.com,_blank)"]http://www.domain.com%5b/a%5D%5B/p]


    <plugin name="links_bar" url="%SWFPATH%/plugins/textfield.swf" x="5" y="0" width="800" height="35" align="righttop" edge="righttop" zorder="2" enabled="true" keep="true" visible="false" onloaded="txtadd(css,'p{color:#',get(title_color),';font-family:Verdana;font-size:18px;letter-spacing:-1;}a:hover{ text-decoration:underline; }.testhidden{color:#eff1f0;font-size:1px;}');" wordwrap="true" autosize="right" selectable="false" background="false" borderwidth="0" autoalpha="true" layout="large" tag="nav" />

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!