I'm working on a little project and I have this panel down, but I would like to change the "tab" position something like this http://s26.postimg.org/5tr23ln9l/little_text.png
I hope you can help me, loves, I am a bit of a "newbie" here~
http://jsfiddle.net/2YhzT/
#purple {
-webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px;
text-align: center;
font-size: 11px;
position:fixed;
left:-50px;
-webkit-transition: all .5s ease-in-out;
-moz-transition: all .5s ease-in-out;
-o-transition: all .5s ease-in-out;
x-index:999;
}
I think there is something wrong with this part;
http://jsfiddle.net/2YhzT/6/
Adding this to
#redtabseems to fix it.However, using an
display:inline-blockis a better approach. Add this on#redtab:Meanwhile, don't forget to add
display:inline-blockon#redas well.Now, it works on window resize too.
One more
If you wanted it to show and hide, if I take your image literally, then do this:
display:noneto#redtab(So by default it is hidden)Once we
hoverover the main navigation element, we can show it by:Animation to demonstrate (note the lack of jitter).