tags:

views:

513

answers:

3

For the following example:

http://developer.yahoo.com/yui/examples/tabview/frommarkup_clean.html

I would like to make the tabs right aligned and still retain the current order.

I'm certain its something simple - just too close to it to see the solution.

A: 

Have you tried applying "text-align: right;" to the container div :

<div id="demo" class="yui-navset">

?

da5id
Close - unfortunately sets the tab contents also right aligned. Thanks!
jimg
+1  A: 

Off the top my head, how about:


<div id="demo" class="yui-navset">
    <ul class="yui-nav" style="text-align:right;">
        <li><a href="#tab1"><em>Tab One Label</em></a></li>
        <li class="selected"><a href="#tab2"><em>Tab Two Label</a></li>
        <li><a href="#tab3"><em>Tab Three Label</em></a></li>
    </ul>            
    <div class="yui-content">
        <div id="tab1"><p>Tab One Content</p></div>
        <div id="tab2"><p>Tab Two Content</p></div>
        <div id="tab3"><p>Tab Three Content</p></div>
    </div>
</div>
Khnle
A: 

What da5id and Kevin Le said.

In the CSS file, add this line: ul.yui-nav { text-align:right; }

It's the same solution.

MK_Dev