About transforming tabs with css3

About transforming tabs with css3

Hey, I have the following html code (using angularJS):
  1. <div class="list-posts" ng-repeat="post in site.articles">
  2. <article>
  3. <div class="article-headline"><h2>{{post.headline}}</h2></div>
  4. <div class="article-author"><em>@{{post.author}}</em></div>
  5. <div class="article-body">{{post.body}}</div>

  6. <div class="tabs">
  7. <ul>
  8. <li><a href="#fragment-1">Comments</a></li>
  9. </ul>
  10. <tab-comments ng-controller="CommentsController as comments" id="fragment-1"></tab-comments>
  11. </div>

  12. </article>
  13. </div>

So I put the "fragment-1" in tabs like this:
  1. $(document).ready(function(){

  2. menuYloc = parseInt($("#navbarMain").css("top").substring(0,$("#navbarMain").css("top").indexOf("px")));

  3. $(window).scroll(function(event) {

  4. var y = $(window).scrollTop();

  5. var offset = menuYloc + y + "px";

  6. $("#navbarMain").animate({
  7. top : offset
  8. },{
  9.    duration: 500,
  10. queue : false});
  11. });

  12. $(".tabs").tabs({active : 1, collapsible : true});
  13. });
All of it works fine for me, but I wan't to rearrange the tabs so they would appear floating to the
right in the <article> block that contains them. Somthing like this:



(also that the tabs headers sould be floating to the right)
Thank you very much !