About transforming tabs with css3
Hey, I have the following html code (using angularJS):
- <div class="list-posts" ng-repeat="post in site.articles">
- <article>
- <div class="article-headline"><h2>{{post.headline}}</h2></div>
- <div class="article-author"><em>@{{post.author}}</em></div>
- <div class="article-body">{{post.body}}</div>
- <div class="tabs">
- <ul>
- <li><a href="#fragment-1">Comments</a></li>
- </ul>
- <tab-comments ng-controller="CommentsController as comments" id="fragment-1"></tab-comments>
- </div>
- </article>
- </div>
So I put the "fragment-1" in tabs like this:
- $(document).ready(function(){
- menuYloc = parseInt($("#navbarMain").css("top").substring(0,$("#navbarMain").css("top").indexOf("px")));
- $(window).scroll(function(event) {
- var y = $(window).scrollTop();
- var offset = menuYloc + y + "px";
- $("#navbarMain").animate({
- top : offset
- },{
- duration: 500,
- queue : false});
- });
- $(".tabs").tabs({active : 1, collapsible : true});
- });
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 !