:: Forum >> Version 2 >>

Tabs - align right

Simple question...

I have AW.UI.Tabs on my page, but I want it fixed to the right of my page rather than the left. I tried floating it off to the right, but the tabs have a lot of extra blank space within the outer span to the right of the tab buttons.

Is there a nice elegant way I can make them flow from the right instead of from the left?
Robin
Monday, September 18, 2006
ok, right-aligned tabs -

<style>

#myTabs {
    
width100%;
}

#myTabs .aw-list-template {
    
positionabsolute;
    
right0px;
    
padding-right4px;
    
text-alignright;
}

#myTabs .aw-item-template {
    
floatnone;
}

</
style>
<
script>

    var 
obj = new AW.UI.Tabs;
    
obj.setId("myTabs");
    
obj.setItemText(["Item1""Item2""Item3"]);
    
obj.setItemCount(3);
    
obj.setSelectedItems([0]);
    
document.write(obj);

</
script>
<
div style="border-top:1px solid #ccc"></div>
 
Alex (ActiveWidgets)
Monday, September 18, 2006
Thanks Alex.
Robin
Tuesday, September 19, 2006



This topic is archived.

Back to support forum

Forum search